Ejemplo n.º 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.");
        }
Ejemplo n.º 2
0
        public void RepgenRunResult_Error_HasCorrectRunStatus()
        {
            RepgenRunResult result = RepgenRunResult.Error("Error");

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