コード例 #1
0
 public void ModificationThatDoesNotChangeValidStateWillNotRaiseNotifyEvent(ProductEditorViewModel sut, string price)
 {
     // Fixture setup
     // Exercise system and verify outcome
     sut.ShouldNotNotifyOn(s => s.IsValid).When(s => s.Price = price);
     // Teardown
 }
コード例 #2
0
 public void NotChangingTitleWillNotRaiseNotifyEvent(ProductEditorViewModel sut)
 {
     // Fixture setup
     // Exercise system and verify outcome
     sut.ShouldNotNotifyOn(s => s.Title).When(s => s.Title = s.Title);
     // Teardown
 }
コード例 #3
0
 public void ModificationThatDoesNotChangeValidStateWillNotRaiseNotifyEvent(ProductEditorViewModel sut, string price)
 {
     // Fixture setup
     // Exercise system and verify outcome
     sut.ShouldNotNotifyOn(s => s.IsValid).When(s => s.Price = price);
     // Teardown
 }
コード例 #4
0
 public void NotChangingTitleWillNotRaiseNotifyEvent(ProductEditorViewModel sut)
 {
     // Fixture setup
     // Exercise system and verify outcome
     sut.ShouldNotNotifyOn(s => s.Title).When(s => s.Title = s.Title);
     // Teardown
 }