public void Test_SkippedResult() { // Act. var result = new SkippedResult("Skipped"); // Assert. Assert.Null(result.Duration); Assert.Equal(TestStatus.Skipped, result.Status); Assert.Equal("Skipped", result.SkipReason); }
public void Test_Map_SkippedResult() { // Arrange. var testCase = new TestCase("This.Is.A.Test", new Uri("executor://The.Executor"), @"C:\TestScript.ps1"); var result = new SkippedResult("Because!"); // Act. var mappedResult = mapper.Map(testCase, result); // Assert. Assert.Equal(TestOutcome.Skipped, mappedResult.Outcome); Assert.Equal(TimeSpan.Zero, mappedResult.Duration); Assert.Equal(testCase, mappedResult.TestCase); Assert.Null(mappedResult.ErrorStackTrace); Assert.Null(mappedResult.ErrorMessage); }
public virtual void Visit(SkippedResult visitee) => Visit((Result)visitee);