示例#1
0
        public void GenericExplicitImplementationClosurePostNegative()
        {
            IGenericInterface <string> j = new GenericExplicitImpl <string>();

            string[] x = new string[] { "abcd", "defg" };
            j.WithStaticClosure(x, false);
        }
示例#2
0
        public void GenericExplicitImplementationClosurePostNegative()
        {
            IGenericInterface <string> j = new GenericExplicitImpl <string>();

            string[] x = new string[] { "abcd", "defg" };
            Assert.Throws <TestRewriterMethods.PostconditionException>(() => j.WithStaticClosure(x, false));
        }