Exemple #1
0
        public void WhenNoneCsFile()
        {
            var actual = CodePreprocessorMenuItems.getFilePaths(p_noneCsFile, "*.cs");

            actual.leftValue.isSome.shouldBeTrue();
        }
Exemple #2
0
        public void WhenCsFile()
        {
            var actual = CodePreprocessorMenuItems.getFilePaths(p_cs1, "*.cs").rightValue.get.ToImmutableHashSet();

            actual.shouldEqual(ImmutableHashSet.Create(p_cs1));
        }
Exemple #3
0
        public void WhenEmptyDir()
        {
            var actual = CodePreprocessorMenuItems.getFilePaths(p_emptyDir, "*.cs");

            actual.leftValue.isSome.shouldBeTrue();
        }
Exemple #4
0
        public void WhenDirWithNoCsFiles()
        {
            var actual = CodePreprocessorMenuItems.getFilePaths(p_noCsFilesDir, "*.cs");

            actual.leftValue.isSome.shouldBeTrue();
        }
Exemple #5
0
        public void WhenManySubdirectories()
        {
            var actual = CodePreprocessorMenuItems.getFilePaths(p_rootPath, "*.cs").rightValue.get.ToImmutableHashSet();

            actual.shouldEqual(ImmutableHashSet.Create(p_cs1, p_cs2, p_cs3, p_cs4));
        }