public void FindMethodOK() { clsConsole AConsole = new clsConsole(); //boolean to store result of search Boolean Found = false; Int32 ConsoleNo = 2; Found = AConsole.Find(ConsoleNo); Assert.IsTrue(Found); }
public void TestConsoleNo() { clsConsole AConsole = new clsConsole(); Boolean Found = false; Boolean OK = true; Int32 ConsoleNo = 2; Found = AConsole.Find(ConsoleNo); if (AConsole.ConsoleNo != 2) { OK = false; } Assert.IsTrue(OK); }