public void Setup()
        {
            // Initilize Xamarin Forms
            MockForms.Init();

            //This is your App.xaml and App.xaml.cs, which can have resources, etc.
            app = new App();
            Application.Current = app;

            page = new ItemReadPage(new GenericViewModel <ItemModel>(new ItemModel()));
        }
Пример #2
0
        public void ItemReadPage_Constructor_Default_Should_Pass()
        {
            // Arrange
            var ViewModel = new ItemViewModel();

            // Act
            var result = new ItemReadPage(ViewModel);

            // Reset

            // Assert
            Assert.IsNotNull(result);
        }
Пример #3
0
        public void ItemReadPage_Update_Clicked_Default_Should_Pass()
        {
            // Arrange
            var ViewModel = new ItemViewModel();

            var page = new ItemReadPage(ViewModel);

            // Act
            page.Update_Clicked(null, null);

            // Reset

            // Assert
            Assert.IsTrue(true); // Got to here, so it happened...
        }