public void RepgenRunResult_Error_HasCorrectErrorMessageWhenNotBlank() { RepgenRunResult result = RepgenRunResult.Error("This is an error message."); result.ErrorMessage.Should().Be("This is an error message."); }
public void RepgenRunResult_Error_HasCorrectRunStatus() { RepgenRunResult result = RepgenRunResult.Error("Error"); result.Status.Should().Be(RunStatus.Error); }
public void RepgenRunResult_ErrorWithNullMessage_ThrowsException() { Assert.Throws <ArgumentNullException>( () => { RepgenRunResult result = RepgenRunResult.Error(null); } ); }