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

            result.IsType(ProjectType.Unspecified).Should().BeTrue();
        }
示例#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();
        }