Ejemplo n.º 1
0
        public void GenericImplicitImplementationClosurePostPositive()
        {
            IGenericInterface <string> j = new GenericImplicitImpl <string>();

            string[] x = new string[] { "abcd", "defg" };
            j.WithStaticClosure(x, true);
        }
Ejemplo n.º 2
0
        public void GenericImplicitImplementationClosure2PostNegative()
        {
            IGenericInterface <string> j = new GenericImplicitImpl <string>();

            string[] x = new string[] { "abcd", "defg" };
            j.WithClosureObject(x, false);
        }
Ejemplo n.º 3
0
        public void GenericImplicitImplementationClosure2PostNegative()
        {
            IGenericInterface <string> j = new GenericImplicitImpl <string>();

            string[] x = new string[] { "abcd", "defg" };
            Assert.Throws <TestRewriterMethods.PostconditionException>(() => j.WithClosureObject(x, false));
        }
Ejemplo n.º 4
0
        public void GenericImplicitImplementationPostNegative()
        {
            IGenericInterface <string> j = new GenericImplicitImpl <string>();

            j.M("abcd", false);
        }
Ejemplo n.º 5
0
        public void GenericImplicitImplementationPreNegative()
        {
            IGenericInterface <string> j = new GenericImplicitImpl <string>();

            j.M(null, true);
        }
Ejemplo n.º 6
0
        public void GenericImplicitImplementationPostNegative()
        {
            IGenericInterface <string> j = new GenericImplicitImpl <string>();

            Assert.Throws <TestRewriterMethods.PostconditionException>(() => j.M("abcd", false));
        }
Ejemplo n.º 7
0
        public void GenericImplicitImplementationPreNegative()
        {
            IGenericInterface <string> j = new GenericImplicitImpl <string>();

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