public void WithZeroProperties_ThrowNewInvalidOperationException() { var dummy = new Dummy(); dummy.Invoking(d => d.FormatProperties()) .ShouldThrow<InvalidOperationException>(); }
public void InvokeNonPropertyMethod_ThrowInvalidOperationException() { var dummy = new Dummy(); dummy.Invoking(d => d.FormatProperties(x => x.NonPropertyMethod())) .ShouldThrow<InvalidOperationException>(); }