public void Negative_NullablePreconditionMethod_ThrowsIfPositive() { var demo = new NegativeConsumer(); Assert.Throws <PreconditionException>(() => demo.PreconditionNullableMethod(1)); }
public void Negative_NullablePreconditionMethod_DoesNotThrowIfNull() { var demo = new NegativeConsumer(); Assert.DoesNotThrow(() => demo.PreconditionNullableMethod(null)); }