public void TestAddDepositDelete() { UnitTesting.SetupTesting(); Regex re = new Regex(@"\$45\.55"); UnitTesting.AddWatch(re); CreateCustomer(); Task deposit = Task.Run(() => Bank.MainMenu()); UnitTesting.AddInput("view"); UnitTesting.AddInput("deposit"); UnitTesting.AddInput("45.55"); UnitTesting.AddInput("return"); UnitTesting.AddInput("close"); UnitTesting.AddInput("yes"); UnitTesting.AddInput("yes"); UnitTesting.AddInput("\n"); deposit.GetAwaiter().GetResult(); int res = UnitTesting.WatchCount(re); UnitTesting.EndTest(); Log.Information($"Recorded {res} occurrences."); Assert.IsTrue(res > 0); }