mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-05-01 19:42:51 +08:00

* #212 - hacked websockets proxy together * faffing around * #212 hacking away :( * #212 websockets proxy middleware working * #212 map when for webockets working * #212 some test refactor * #212 temp commit * #212 websockets proxy working, tests passing...need to do some tidying and write docs * #212 more code coverage * #212 docs for websockets * #212 updated readme * #212 tidying up after websockets refactoring * #212 tidying up after websockets refactoring * #212 tidying up after websockets refactoring * stuck a warning in about logging levels into docs!
30 lines
560 B
C#
30 lines
560 B
C#
using Xunit;
|
|
using Ocelot.Infrastructure.Extensions;
|
|
using Shouldly;
|
|
|
|
namespace Ocelot.UnitTests.Infrastructure
|
|
{
|
|
public class StringExtensionsTests
|
|
{
|
|
[Fact]
|
|
public void should_trim_start()
|
|
{
|
|
var test = "/string";
|
|
|
|
test = test.TrimStart("/");
|
|
|
|
test.ShouldBe("string");
|
|
}
|
|
|
|
[Fact]
|
|
public void should_return_source()
|
|
{
|
|
var test = "string";
|
|
|
|
test = test.LastCharAsForwardSlash();
|
|
|
|
test.ShouldBe("string/");
|
|
}
|
|
}
|
|
}
|