I a app there is a BoxView in which Gray color is set.
I need to check the color of BoxView through Xamarin.Uitest
I have applied the following approach:
Assert.AreEqual(ConsoleColor.Gray, app.Query(x => x.Marked("BoxView").Invoke("getBackground").Invoke("getColor")));
It give error=> Message: Expected: Gray
But was: < -8355712 >