public void TestHistorySearchNextWithPattern() { InsertAndExecuteInputs("12", "123", "12", "1"); SetActiveCode("end"); _operations.HistoryPrevious(); AssertCurrentSubmission("1"); _operations.HistoryPrevious(); AssertCurrentSubmission("12"); _operations.HistoryPrevious(); AssertCurrentSubmission("123"); _operations.HistoryPrevious(); AssertCurrentSubmission("12"); _operations.HistorySearchNext(); AssertCurrentSubmission("123"); // Pattern is captured before this step. _operations.HistorySearchNext(); AssertCurrentSubmission("12"); _operations.HistorySearchNext(); AssertCurrentSubmission("end"); }
public async Task TestHistorySearchNextWithPattern() { await InsertAndExecuteInputs("12", "123", "12", "1").ConfigureAwait(true); SetActiveCode("end"); _operations.HistoryPrevious(); AssertCurrentSubmission("1"); _operations.HistoryPrevious(); AssertCurrentSubmission("12"); _operations.HistoryPrevious(); AssertCurrentSubmission("123"); _operations.HistoryPrevious(); AssertCurrentSubmission("12"); _operations.HistorySearchNext(); AssertCurrentSubmission("123"); // Pattern is captured before this step. _operations.HistorySearchNext(); AssertCurrentSubmission("12"); _operations.HistorySearchNext(); AssertCurrentSubmission("end"); }