public void Split_returns_a_PathInformation_DTO_with_correctly_filled_path_properties() { var sut = new PathSplitter(); var result = sut.Split("userName/targetKey/services/index.html"); result.CompletePath.Should().Be("userName/targetKey/services/index.html"); result.OnPremiseTargetKey.Should().Be("targetKey"); result.LocalUrl.Should().Be("/services/index.html"); result.UserName.Should().Be("userName"); result.PathWithoutUserName.Should().Be("targetKey/services/index.html"); }
public void Split_throws_an_exception_when_given_path_is_null() { IPathSplitter sut = new PathSplitter(); sut.Split(null); }