Validating Properties of Silverlight Elements

Assert.IsTrue(guidanceOverlays.Count == 15);
Assert.IsTrue(CompareUtils.NumberCompareRange(foundPatients.Count, 93, 105, NumberRangeCompareType.InRange);
Assert.IsTrue(patientSearchItem.Find.ByName("Address").Visibility == Visibility.Collapsed);
Assert.IsTrue(searchScroll.VerticalOffset == 2000);
Assert.AreEqual<System.Drawing.Rectangle>(new System.Drawing.Rectangle(1700, 259, 813, 465), admin1.GetScreenRectangle());
app.Find.Strategy = FindStrategy.WhenNotVisibleReturnElementProxy
Assert.IsTrue(CompareUtils.NumberCompareRange(foundPatients.Count, 93, 105, NumberRangeCompareType.InRange))
Assert.IsTrue(patientSearchItem.Find.ByName("Address").Visibility = Visibility.Collapsed)
Assert.AreEqual(2000, searchScroll.VerticalOffset)
Assert.AreEqual(Of System.Drawing.Rectangle)(New System.Drawing.Rectangle(1700, 259, 813, 465), admin1.GetScreenRectangle())