public void ToString_TwoWarnings_HasBoth()
 {
     var result = new ResultBase();
     result.AddMessage(new ResultItem(1, "this is a test"));
     result.AddMessage(new ResultItem(2, "this is a test 2"));
     var stringResult = result.ToString();
     stringResult.Should().Contain("this is a test");
     stringResult.Should().Contain("this is a test 2");
 }
 public void ToString_TwoMessages_HasCorrectData()
 {
     var result = new ResultBase();
     result.AddMessage(-2, "this is the error");
     result.AddMessage(1, "this is the warning");
     result.ToString().Should().Be("IsSuccess = False Messages: -2 - this is the error, 1 - this is the warning");
 }