示例#1
0
        public void Input_SetInput_OnPropertyChangedIsCalled()
        {
            _uut.PropertyChanged += _fakeNotifyTest.TestINotify;

            _uut.Input = "7";

            _fakeNotifyTest.Received().TestINotify(Arg.Any <object>(), Arg.Any <PropertyChangedEventArgs>());
        }
示例#2
0
        public void BackgroundColor_SetColor_NotifyCalled()
        {
            var _uut = new TabViewModel(_fakeSalesController, _fakeNumpad);

            _uut.PropertyChanged += _fakeNotifyTest.TestINotify;

            _uut.BackGroundColour = "Green";

            _fakeNotifyTest.Received(1).TestINotify(Arg.Any <object>(), Arg.Any <PropertyChangedEventArgs>());
        }