public void Should_return_false_when_a_property_was_not_declared_in_the_specified_view_model() { var testViewModel = new TestViewModel1(); var propertyInfo = testViewModel.GetType().GetProperty("Valid_Email"); propertyInfo.IsDeclaredIn <TestViewModel1>().ShouldBeFalse(); }
public void Should_return_false_when_a_property_was_not_declared_in_the_specified_view_model() { var testViewModel = new TestViewModel1(); var propertyInfo = testViewModel.GetType().GetProperty("Valid_Email"); propertyInfo.IsDeclaredIn<TestViewModel1>().ShouldBeFalse(); }
public TestPage1() { BindingContext = new TestViewModel1(); Content = new StackLayout { Children = { new Label { Text = "Hello ContentPage" } } }; }
public TestPageConstructor1(TestViewModel1 viewModel) { BindingContext = viewModel; }