コード例 #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
ファイル: SlnProjectTests.cs プロジェクト: odhanson/slngen
        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
ファイル: SlnProjectTests.cs プロジェクト: odhanson/slngen
        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();
        }