Exemple #1
0
        public void ShouldIncludeInSolutionTraversalProject()
        {
            Dictionary <string, string> globalProperties = new Dictionary <string, string>
            {
                { "IsTraversal", "true" },
            };

            Project project = CreateProject("dirs", ".proj", globalProperties: globalProperties);

            SlnProject.ShouldIncludeInSolution(project).ShouldBeFalse();
        }
Exemple #2
0
        public void ShouldIncludeInSolutionTraversalProject()
        {
            Dictionary <string, string> globalProperties = new Dictionary <string, string>
            {
                { MSBuildPropertyNames.IsTraversal, bool.TrueString },
            };

            Project project = CreateProject("dirs", ".proj", globalProperties: globalProperties);

            SlnProject.ShouldIncludeInSolution(project).ShouldBeFalse();
        }
Exemple #3
0
        public void ShouldIncludeInSolutionExclusion()
        {
            Dictionary <string, string> globalProperties = new Dictionary <string, string>
            {
                { "IncludeInSolutionFile", "false" },
            };

            Project project = CreateProject("foo", ".csproj", globalProperties: globalProperties);

            SlnProject.ShouldIncludeInSolution(project).ShouldBeFalse();
        }
Exemple #4
0
        public void ShouldIncludeInSolutionExclusion()
        {
            Dictionary <string, string> globalProperties = new Dictionary <string, string>
            {
                { MSBuildPropertyNames.IncludeInSolutionFile, bool.FalseString },
            };

            Project project = CreateProject("foo", ProjectFileExtensions.CSharp, globalProperties: globalProperties);

            SlnProject.ShouldIncludeInSolution(project).ShouldBeFalse();
        }