Esempio n. 1
0
        public void Reset_work_correctly()
        {
            //Arrange
            var input  = "1235678";
            var config = new Mock <IConfig>();
            var manualPageViewModel = new ManualPageViewModel(config.Object)
            {
                UsageInput = input
            };

            //Act

            manualPageViewModel.Reset();

            var result = manualPageViewModel.UsageInput;

            //Assert
            Assert.Null(result);
        }
 protected override void OnDisappearing()
 {
     base.OnDisappearing();
     viewModel.Reset();
 }