コード例 #1
0
        public void ShouldNotRemoreWordTestInBetween()
        {
            var specificationLocator = new ClassNameBasedSpecificationLocator();
            var resource             = specificationLocator.LocateSpecification(new DummyContainingTestInNameTest());
            var path = resource.Path.Replace(Path.DirectorySeparatorChar, '/');

            Assert.AreEqual("Concordion/Test/Internal/DummyContainingTestInName.html", path, "path from SpecificiationLocator removed 'Test' in the middle");
        }
コード例 #2
0
        public void ShouldRemoveTestSuffixes()
        {
            var specificationLocator = new ClassNameBasedSpecificationLocator();
            var resource             = specificationLocator.LocateSpecification(this);
            var path = resource.Path.Replace(Path.DirectorySeparatorChar, '/');

            Assert.AreEqual("Concordion/Test/Internal/SpecificationLocator.html", path, "path from SpecificationLocator contains 'Test'");
        }