Esempio n. 1
0
        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"
                    }
                }
            };
        }
Esempio n. 4
0
 public TestPageConstructor1(TestViewModel1 viewModel)
 {
     BindingContext = viewModel;
 }