Exemple #1
0
        public void CanGetProjectType_WhenProjectTypeGuidsIsNull()
        {
            var result = new TestProjectParserResult {
                ProjectTypeGuids = null
            };

            result.IsType(ProjectType.Unspecified).Should().BeTrue();
        }
Exemple #2
0
        public void CanGetProjectTypeFromMultiple()
        {
            var result = new TestProjectParserResult()
            {
                ProjectTypeGuids =
                    new[] { ProjectTypes.CSharp, ProjectTypes.AspNetMvc1 }
            };

            result.IsType(ProjectType.Unspecified).Should().BeFalse();
            result.IsType(ProjectType.CSharp).Should().BeTrue();
            result.IsType(ProjectType.AspNetMvc1).Should().BeTrue();
        }