Ejemplo n.º 1
0
        public void IProjectSystemHelperExtensions_IsKnownTestProject_IsNotTestProject_ReturnsFalse()
        {
            // Arrange
            var vsProject = new LegacyProjectMock("myproject.proj");

            // Act + Assert
            IProjectSystemHelperExtensions.IsKnownTestProject(this.projectSystem, vsProject).Should().BeFalse("Expected project without test project kind NOT to be known test project");
        }
        public void IProjectSystemHelperExtensions_IsKnownTestProject_IsNotTestProject_ReturnsFalse()
        {
            // Setup
            var vsProject = new ProjectMock("myproject.proj");

            // Act + Verify
            Assert.IsFalse(IProjectSystemHelperExtensions.IsKnownTestProject(this.projectSystem, vsProject),
                           "Expected project without test project kind NOT to be known test project");
        }
        public void IProjectSystemHelperExtensions_IsKnownTestProject_ArgChecks()
        {
            // Setup
            IVsHierarchy vsProject = new ProjectMock("myproject.proj");

            // Act + Verify
            Exceptions.Expect <ArgumentNullException>(() => IProjectSystemHelperExtensions.IsKnownTestProject(null, vsProject));
            Exceptions.Expect <ArgumentNullException>(() => IProjectSystemHelperExtensions.IsKnownTestProject(this.projectSystem, null));
        }
Ejemplo n.º 4
0
        public void IProjectSystemHelperExtensions_IsKnownTestProject_IsTestProject_ReturnsTrue()
        {
            // Arrange
            var vsProject = new LegacyProjectMock("myproject.proj");

            vsProject.SetAggregateProjectTypeGuids(ProjectSystemHelper.TestProjectKindGuid);

            // Act + Assert
            IProjectSystemHelperExtensions.IsKnownTestProject(this.projectSystem, vsProject).Should().BeTrue("Expected project with test project kind to be known test project");
        }
        public void IProjectSystemHelperExtensions_IsKnownTestProject_IsTestProject_ReturnsTrue()
        {
            // Setup
            var vsProject = new ProjectMock("myproject.proj");

            vsProject.SetAggregateProjectTypeGuids(ProjectSystemHelper.TestProjectKindGuid);

            // Act + Verify
            Assert.IsTrue(IProjectSystemHelperExtensions.IsKnownTestProject(this.projectSystem, vsProject),
                          "Expected project with test project kind to be known test project");
        }