static void Main(string[] args) { // Test Stub CodeToTest1 code = new CodeToTest1(); int result = code.subtract(3, 2); Console.Write("Result is:{0}\n", result); Console.ReadKey(); }
public bool test() { int result = code.subtract(3, 0); // calls the subtract function of CodeToTest2 if (result == 3) { return(true); } else { return(false); } }