Esempio n. 1
0
        public void IncrementCommand_SetsExpectedResults()
        {
            // Arange
            var vm = new MyPageViewModel();

            // Act
            vm.IncrementCommand.Execute(null);

            // Assert
            Assert.AreEqual("1", vm.Result);
        }
Esempio n. 2
0
        public MyPage(MyPageViewModel vm)
        {
            InitializeComponent();

            BindingContext = vm;
        }