public void testUpdateAccountSuccess() { BankManager a = new BankManager(1); string test = @"1 young 15.34 11/13/13"; StringWriter sw = new StringWriter(); StringReader sr = new StringReader(test); Console.SetIn(sr); Console.SetOut(sw); a.createAccount(); test = @"1 1 hello"; sr = new StringReader(test); Console.SetIn(sr); Console.SetOut(sw); Assert.IsTrue(a.updateAccount()); test = @"1 2 14.00 "; sr = new StringReader(test); Console.SetIn(sr); Console.SetOut(sw); Assert.IsTrue(a.updateAccount()); test = @"1 3 14.00"; sr = new StringReader(test); Console.SetIn(sr); Console.SetOut(sw); Assert.IsTrue(a.updateAccount()); }