In both cases I have line of sight to cast a frostbolt on the dummy, but when behind the grass fence, the nameplate fades off telling me that I don't have the sight to cast.
Plus: would be a great deal is authors have a way to known if the target is out of sight by this new raycast thing.