예제 #1
0
        public void GetConfigurationIndependentPropertyPagesTest()
        {
            NestedProjectNode target = new NestedProjectNode();
            VisualStudio_Project_Samples_NestedProjectNodeAccessor accessor =
                new VisualStudio_Project_Samples_NestedProjectNodeAccessor(target);


            Guid[] actual;
            actual = accessor.GetConfigurationIndependentPropertyPages();

            Assert.IsTrue(actual != null && actual.Length > 0, "The result of GetConfigurationIndependentPropertyPages was unexpected.");
            Assert.IsTrue(actual[0].Equals(typeof(GeneralPropertyPage).GUID), "The value of collection returned by GetConfigurationIndependentPropertyPages is unexpected.");
        }
예제 #2
0
        public void GetConfigurationDependentPropertyPagesTest()
        {
            NestedProjectNode target = projectNode;
            VisualStudio_Project_Samples_NestedProjectNodeAccessor accessor =
                new VisualStudio_Project_Samples_NestedProjectNodeAccessor(target);

            Guid[] expected = new Guid[] { new Guid("C43AD3DC-7468-48e1-B4D2-AAC0C74A0109") };
            Guid[] actual;

            actual = accessor.GetConfigurationDependentPropertyPages();

            CollectionAssert.AreEqual(expected, actual, "Microsoft.VisualStudio.Project.Samples.NestedProject.NestedProjectNode.GetConfigurationDepe" +
                                      "ndentPropertyPages did not return the expected value.");
        }
        public void GetPriorityProjectDesignerPagesTest()
        {
            NestedProjectNode target = new NestedProjectNode();
            VisualStudio_Project_Samples_NestedProjectNodeAccessor accessor =
                new VisualStudio_Project_Samples_NestedProjectNodeAccessor(target);


            Guid[] actual;
            actual = accessor.GetPriorityProjectDesignerPages();

            Assert.IsTrue(actual != null && actual.Length > 0, "The result of GetConfigurationIndependentPropertyPages was unexpected.");
            Assert.IsTrue(actual[0].Equals(typeof(GeneralPropertyPage).GUID), "The value of collection returned by GetConfigurationIndependentPropertyPages is unexpected.");
        }
        public void GetConfigurationDependentPropertyPagesTest()
        {
            NestedProjectNode target = projectNode;
            VisualStudio_Project_Samples_NestedProjectNodeAccessor accessor =
                new VisualStudio_Project_Samples_NestedProjectNodeAccessor(target);

            Guid[] expected = new Guid[] { new Guid("C43AD3DC-7468-48e1-B4D2-AAC0C74A0109") };
            Guid[] actual;

            actual = accessor.GetConfigurationDependentPropertyPages();

            CollectionAssert.AreEqual(expected, actual, "Microsoft.VisualStudio.Project.Samples.NestedProject.NestedProjectNode.GetConfigurationDepe" +
                    "ndentPropertyPages did not return the expected value.");
        }