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

            string[] x = new string[] { "abcd", "defg" };
            j.WithStaticClosure(x, true);
        }
コード例 #2
0
        public void GenericExplicitImplementationClosure2PostNegative()
        {
            IGenericInterface <string> j = new GenericExplicitImpl <string>();

            string[] x = new string[] { "abcd", "defg" };
            j.WithClosureObject(x, false);
        }
コード例 #3
0
        public void GenericExplicitImplementationClosure2PostNegative()
        {
            IGenericInterface <string> j = new GenericExplicitImpl <string>();

            string[] x = new string[] { "abcd", "defg" };
            Assert.Throws <TestRewriterMethods.PostconditionException>(() => j.WithClosureObject(x, false));
        }
コード例 #4
0
        public void GenericExplicitImplementationPostNegative()
        {
            IGenericInterface <string> j = new GenericExplicitImpl <string>();

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

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

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

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