public void DashAndUnderscoreInsensitive() { var sut = new EmbeddedResourcePathMatcher(); Assert.True(sut.Match(new EmbeddedResourceAssembly("name", "basePath", null, Enumerable.Empty <EmbeddedResource>()), new EmbeddedResource("name.Lorem_Ipsum"), "Lorem-Ipsum")); Assert.True(sut.Match(new EmbeddedResourceAssembly("name", "basePath", null, Enumerable.Empty <EmbeddedResource>()), new EmbeddedResource("name.Lorem-Ipsum"), "Lorem_Ipsum")); }
public void DotAndSlashInsensitive() { var sut = new EmbeddedResourcePathMatcher(); Assert.True(sut.Match(new EmbeddedResourceAssembly("name", "basePath", null, Enumerable.Empty <EmbeddedResource>()), new EmbeddedResource("name.Lorem.Ipsum.Dolor.hej"), "Lorem/Ipsum.Dolor.hej")); Assert.True(sut.Match(new EmbeddedResourceAssembly("name", "basePath", null, Enumerable.Empty <EmbeddedResource>()), new EmbeddedResource("name.Lorem.Ipsum.Dolor.hej"), "Lorem.Ipsum/Dolor.hej")); Assert.True(sut.Match(new EmbeddedResourceAssembly("name", "basePath", null, Enumerable.Empty <EmbeddedResource>()), new EmbeddedResource("name.Lorem.Ipsum.Dolor.hej"), "Lorem.Ipsum.Dolor/hej")); }
public void CaseInsensitive() { var sut = new EmbeddedResourcePathMatcher(); Assert.True(sut.Match(new EmbeddedResourceAssembly("name", "basePath", null, Enumerable.Empty <EmbeddedResource>()), new EmbeddedResource("name.LoremIpsum"), "loreMipsuM")); }