コード例 #1
0
        static void Main(string[] args)
        {
            TestCode2 newCode2   = new TestCode2();
            bool      testresult = newCode2.Subtract("test stub");

            if (testresult == true)
            {
                Console.WriteLine("Test Case has Passed");
            }
            else
            {
                Console.WriteLine("Test Case has Failed");
            }
        }
コード例 #2
0
        public bool test()
        {
            code.Subtract("Testing the Second Test");   //Test method where all the testing takes place
            TestCode2 newTestCode2 = new TestCode2();
            bool      i            = newTestCode2.Subtract("Testing......");

            if (i == true)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #3
0
        private TestCode2 code;  // will be compiled into separate DLL

        public TestDriver2()
        {
            code = new TestCode2();
        }