Пример #1
0
 public void WithZeroProperties_ThrowNewInvalidOperationException()
 {
     var dummy = new Dummy();
     dummy.Invoking(d => d.FormatProperties())
         .ShouldThrow<InvalidOperationException>();
 }
Пример #2
0
 public void InvokeNonPropertyMethod_ThrowInvalidOperationException()
 {
     var dummy = new Dummy();
     dummy.Invoking(d => d.FormatProperties(x => x.NonPropertyMethod()))
         .ShouldThrow<InvalidOperationException>();
 }