public void Positive_NullablePreconditionMethod_ThrowsIfNegative() { var demo = new PositiveConsumer(); Assert.Throws <PreconditionException>(() => demo.PreconditionNullableMethod(-1)); }
public void Positive_NullablePreconditionMethod_DoesNotThrowIfNull() { var demo = new PositiveConsumer(); Assert.DoesNotThrow(() => demo.PreconditionNullableMethod(null)); }