Skip to content

Commit

Permalink
review waitcontrol test (ajusted)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Cerqueira committed Oct 19, 2023
1 parent 3194eab commit 2f11c80
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions UnitTests/Controls/TaskWaitControl/WaitControlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,6 @@ public void Should_ValidInitControlPrompt2()
Assert.Empty(init);
}

[Fact]
public void Should_OverwriteCultureTaskName()
{
var ctrl = (WaitControl<object>)PromptPlus
.WaitProcess("P", "D")
.TaskTitle("XXXXXXXXXXXX")
.AddStep(StepMode.Sequential, "task1", "desc task1", (_, cts) =>
{
Thread.Sleep(500);
});

ActionOnDispose = () => ctrl.FinalizeControl(CancellationToken.None);

ctrl.InitControl(CancellationToken.None);

var output = PromptPlus.RecordOutput(() =>
{
CompletesIn(3000, () =>
{
ctrl.InputTemplate(new ScreenBuffer());
var result = ctrl.TryResult(CancellationToken.None);
Assert.False(result.IsRunning);
Assert.True(result.Value.States.Count() == 1);
});
});
Assert.Contains("XXXXXXXXXXXX", output);
}

[Fact]
public void Should_Interaction()
{
Expand Down

0 comments on commit 2f11c80

Please sign in to comment.