Пример #1
0
        public void NonGenericImplicitImplementationPostNegative()
        {
            IGenericInterface <string> j = new NonGenericImplicitImpl();

            j.M("abcd", false);
        }
Пример #2
0
        public void NonGenericImplicitImplementationPostNegative()
        {
            IGenericInterface <string> j = new NonGenericImplicitImpl();

            Assert.Throws <TestRewriterMethods.PostconditionException>(() => j.M("abcd", false));
        }
Пример #3
0
        public void NonGenericImplicitImplementationPreNegative()
        {
            IGenericInterface <string> j = new NonGenericImplicitImpl();

            j.M(null, true);
        }
Пример #4
0
        public void NonGenericImplicitImplementationPreNegative()
        {
            IGenericInterface <string> j = new NonGenericImplicitImpl();

            Assert.Throws <TestRewriterMethods.PreconditionException>(() => j.M(null, true));
        }