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"); } }
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); } }
private TestCode2 code; // will be compiled into separate DLL public TestDriver2() { code = new TestCode2(); }