예제 #1
0
		public void SetProperty_WithSameValue_ShouldNotRaiseNotifyPropertyChanged(
			SampleBindable sut,
			string value1)
		{
			//arrange
			sut.Property = value1;
			sut.MonitorEvents();

			//act
			sut.Property = value1;

			//assert
			sut.ShouldNotRaise("PropertyChanged");
		}
예제 #2
0
        public void SetProperty_WithSameValue_ShouldNotRaiseNotifyPropertyChanged(
            SampleBindable sut,
            string value1)
        {
            //arrange
            sut.Property = value1;
            sut.MonitorEvents();

            //act
            sut.Property = value1;

            //assert
            sut.ShouldNotRaise("PropertyChanged");
        }
예제 #3
0
		public void SetProperty_WithNewValue_ShouldRaiseNotifyPropertyChanged(
			SampleBindable sut,
			string value1,
			string value2)
		{
			//arrange
			sut.Property = value1;
			sut.MonitorEvents();

			//act
			sut.Property = value2;

			//assert
			sut.ShouldRaise("PropertyChanged").WithArgs<PropertyChangedEventArgs>(arg => arg.PropertyName == "Property");
		}
예제 #4
0
        public void SetProperty_WithNewValue_ShouldRaiseNotifyPropertyChanged(
            SampleBindable sut,
            string value1,
            string value2)
        {
            //arrange
            sut.Property = value1;
            sut.MonitorEvents();

            //act
            sut.Property = value2;

            //assert
            sut.ShouldRaise("PropertyChanged").WithArgs <PropertyChangedEventArgs>(arg => arg.PropertyName == "Property");
        }