Esempio n. 1
0
        public void GenericExplicitImplementationPostNegative()
        {
            IGenericInterface <string> j = new GenericExplicitImpl <string>();

            j.M("abcd", false);
        }
Esempio n. 2
0
        public void GenericExplicitImplementationPostNegative()
        {
            IGenericInterface <string> j = new GenericExplicitImpl <string>();

            Assert.Throws <TestRewriterMethods.PostconditionException>(() => j.M("abcd", false));
        }
Esempio n. 3
0
        public void GenericExplicitImplementationPreNegative()
        {
            IGenericInterface <string> j = new GenericExplicitImpl <string>();

            j.M(null, true);
        }
Esempio n. 4
0
        public void GenericExplicitImplementationPreNegative()
        {
            IGenericInterface <string> j = new GenericExplicitImpl <string>();

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