コード例 #1
0
        public void GenericImplicitImplementationPostNegative()
        {
            IGenericInterface <string> j = new GenericImplicitImpl <string>();

            j.M("abcd", false);
        }
コード例 #2
0
        public void GenericImplicitImplementationPostNegative()
        {
            IGenericInterface <string> j = new GenericImplicitImpl <string>();

            Assert.Throws <TestRewriterMethods.PostconditionException>(() => j.M("abcd", false));
        }
コード例 #3
0
        public void GenericImplicitImplementationPreNegative()
        {
            IGenericInterface <string> j = new GenericImplicitImpl <string>();

            j.M(null, true);
        }
コード例 #4
0
        public void GenericImplicitImplementationPreNegative()
        {
            IGenericInterface <string> j = new GenericImplicitImpl <string>();

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