示例#1
0
        public void Positive_NullablePreconditionMethod_ThrowsIfNegative()
        {
            var demo = new PositiveConsumer();

            Assert.Throws <PreconditionException>(() =>
                                                  demo.PreconditionNullableMethod(-1));
        }
示例#2
0
        public void Positive_NullablePreconditionMethod_DoesNotThrowIfNull()
        {
            var demo = new PositiveConsumer();

            Assert.DoesNotThrow(() =>
                                demo.PreconditionNullableMethod(null));
        }