public void ConstructWithMessageWithSuccess(RunnerException rex, Exception e) { "Given the runner exception" .x(() => rex.Should().BeNull()); "When constructing with a message" .x(() => e = Record.Exception(() => new RunnerException("an error message"))); "Then the runner exception constructor should succeed" .x(() => e.Should().BeNull()); }
public void ConstructWithNullMessage(RunnerException rex, Exception e) { "Given the runner exception" .x(() => rex.Should().BeNull()); "When constructing with null message" .x(() => e = Record.Exception(() => new RunnerException(null))); "Then the runner exception constructor should succeed" .x(() => e.Should().BeNull()); }
public void ConstructWithNullInnerException(RunnerException rex, Exception inner, Exception e) { "Given the runner exception" .x(() => rex.Should().BeNull()); "And a null inner exception" .x(() => inner.Should().BeNull()); "When constructing with null message" .x(() => e = Record.Exception(() => new RunnerException("an error message", inner))); "Then the runner exception constructor should succeed" .x(() => e.Should().BeNull()); }