예제 #1
0
        public void NonGenericExplicitImplementationClosurePostPositive()
        {
            IGenericInterface <string> j = new NonGenericExplicitImpl();

            string[] x = new string[] { "abcd", "defg" };
            j.WithStaticClosure(x, true);
        }
예제 #2
0
        public void NonGenericExplicitImplementationClosure2PostNegative()
        {
            IGenericInterface <string> j = new NonGenericExplicitImpl();

            string[] x = new string[] { "abcd", "defg" };
            j.WithClosureObject(x, false);
        }
예제 #3
0
        public void NonGenericExplicitImplementationClosurePostNegative()
        {
            IGenericInterface <string> j = new NonGenericExplicitImpl();

            string[] x = new string[] { "abcd", "defg" };
            Assert.Throws <TestRewriterMethods.PostconditionException>(() => j.WithStaticClosure(x, false));
        }
예제 #4
0
        public void NonGenericExplicitImplementationPostNegative()
        {
            IGenericInterface <string> j = new NonGenericExplicitImpl();

            j.M("abcd", false);
        }
예제 #5
0
        public void NonGenericExplicitImplementationPreNegative()
        {
            IGenericInterface <string> j = new NonGenericExplicitImpl();

            j.M(null, true);
        }
예제 #6
0
        public void NonGenericExplicitImplementationPostNegative()
        {
            IGenericInterface <string> j = new NonGenericExplicitImpl();

            Assert.Throws <TestRewriterMethods.PostconditionException>(() => j.M("abcd", false));
        }
예제 #7
0
        public void NonGenericExplicitImplementationPreNegative()
        {
            IGenericInterface <string> j = new NonGenericExplicitImpl();

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