Exemplo n.º 1
0
        public void GenericExplicitImplementationClosure2PostNegative()
        {
            IGenericInterface <string> j = new GenericExplicitImpl <string>();

            string[] x = new string[] { "abcd", "defg" };
            j.WithClosureObject(x, false);
        }
Exemplo n.º 2
0
        public void GenericExplicitImplementationClosure2PostNegative()
        {
            IGenericInterface <string> j = new GenericExplicitImpl <string>();

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