コード例 #1
0
        public void GetFiles_RelativePathWithFileWildcards_ReturnsPath()
        {
            //ARRANGE
            var msBuildRelativePathParser = new MSBuildRelativePathParser();

            //ACT
            var files = msBuildRelativePathParser.GetFiles(_directoryName, PathHelper.SanitizeDirectorySeparatorChar(@"..\Data\ExampleFeatures\Features\Subfolder1\*.feature"));

            //ASSERT
            files.Should().Contain(PathHelper.SanitizeDirectorySeparatorChar(@"..\Data\ExampleFeatures\Features\Subfolder1\ExternalFeature1.feature"));
            files.Count.Should().Be(1);
        }
コード例 #2
0
        public void GetFiles_RelativePathWithFileWildcards_ReturnsPath()
        {
            //ARRANGE
            var msBuildRelativePathParser = new MSBuildRelativePathParser();

            //ACT
            var files = msBuildRelativePathParser.GetFiles(_directoryName, "..\\Data\\ExampleFeatures\\Features\\Subfolder1\\*.feature");

            //ASSERT
            files.Should().Contain("..\\Data\\ExampleFeatures\\Features\\Subfolder1\\ExternalFeature1.feature");
            files.Count.Should().Be(1);
        }