mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-24 06:02:51 +08:00

* change config creator to not throw exception in there is an error......lord i hate this config creator code I need to sort it out. * Remove method that we are not using anymore.. * throw exception and add errors to message * train hacking and some refactoring * bs test for code coverage * actually return the errors in the exception
18 lines
390 B
C#
18 lines
390 B
C#
using Ocelot.Errors;
|
|
using Ocelot.Infrastructure.RequestData;
|
|
using Shouldly;
|
|
using Xunit;
|
|
|
|
namespace Ocelot.UnitTests.Errors
|
|
{
|
|
public class ErrorTests
|
|
{
|
|
[Fact]
|
|
public void should_return_message()
|
|
{
|
|
var error = new CannotAddDataError("message");
|
|
var result = error.ToString();
|
|
result.ShouldBe("message");
|
|
}
|
|
}
|
|
} |