From 75f48eaf739e1b1edff77008fee1a1b420f2c632 Mon Sep 17 00:00:00 2001 From: Manish Jayaswal Date: Wed, 12 Aug 2015 00:39:54 -0700 Subject: [PATCH] adding test --- .../EditorTest/InteractiveWindowTests.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/InteractiveWindow/EditorTest/InteractiveWindowTests.cs b/src/InteractiveWindow/EditorTest/InteractiveWindowTests.cs index 86197d5b8cb..7351a3b874a 100644 --- a/src/InteractiveWindow/EditorTest/InteractiveWindowTests.cs +++ b/src/InteractiveWindow/EditorTest/InteractiveWindowTests.cs @@ -629,12 +629,15 @@ public void CheckHistoryPrevious() Assert.Equal(V, GetTextFromCurrentLanguageBuffer); } - [Fact(Skip = "https://github.com/dotnet/roslyn/issues/4121")] - public void CheckHistoryAfterResetButtonClick() + [Fact] + public void CheckHistoryPreviousAfterReset() { - Task.Run(() => Window.Operations.ResetAsync(initialize: true)).PumpingWait(); - Task.Run(() => Window.Operations.HistoryPrevious()).PumpingWait(); - Assert.Equal("#reset", GetTextFromCurrentLanguageBuffer); + const string V = "#reset"; + Window.InsertCode(V); + Assert.Equal(V, GetTextFromCurrentLanguageBuffer); + Task.Run(() => Window.Operations.ExecuteInput()).PumpingWait(); + Window.Operations.HistoryPrevious(); + Assert.Equal(V, GetTextFromCurrentLanguageBuffer); } } } -- GitLab