Exemplo n.º 1
0
        public void Negative_NullablePostconditionMethod_ThrowsIfPosiitive()
        {
            var demo = new NegativeConsumer();

            Assert.Throws <PostconditionException>(() =>
                                                   demo.PostconditionNullableMethod(1));
        }
Exemplo n.º 2
0
        public void Negative_NullablePostconditionMethod_DoesNotThrowIfNull()
        {
            var demo = new NegativeConsumer();

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