示例#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();
        }
示例#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();
        }
示例#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();
        }
示例#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();
        }