Exemple #1
0
        public void RepgenRunResult_Error_HasCorrectErrorMessageWhenNotBlank()
        {
            RepgenRunResult result = RepgenRunResult.Error("This is an error message.");

            result.ErrorMessage.Should().Be("This is an error message.");
        }
Exemple #2
0
        public void RepgenRunResult_Error_HasCorrectRunStatus()
        {
            RepgenRunResult result = RepgenRunResult.Error("Error");

            result.Status.Should().Be(RunStatus.Error);
        }
Exemple #3
0
 public void RepgenRunResult_ErrorWithNullMessage_ThrowsException()
 {
     Assert.Throws <ArgumentNullException>(
         () => { RepgenRunResult result = RepgenRunResult.Error(null); }
         );
 }