コード例 #1
0
        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"));
        }
コード例 #2
0
        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"));
        }
コード例 #3
0
        public void CaseInsensitive()
        {
            var sut = new EmbeddedResourcePathMatcher();

            Assert.True(sut.Match(new EmbeddedResourceAssembly("name", "basePath", null, Enumerable.Empty <EmbeddedResource>()), new EmbeddedResource("name.LoremIpsum"), "loreMipsuM"));
        }