public void ApplicationIconTest()
        {
            generalPropertyPage.ApplicationIcon = expected;

            string actual = generalPropertyPage.ApplicationIcon;

            Assert.AreEqual(expected, actual,
                            "ApplicationIcon value was not initialized by expected value.");

            Assert.IsTrue((VSConstants.S_OK == generalPropertyPage.IsPageDirty()),
                          "IsDirty status was unexpected after changing of the property of the tested object.");
        }
Exemple #2
0
        public void DefaultNamespaceTest()
        {
            GeneralPropertyPage target = generalPropertyPage;

            target.DefaultNamespace = testString;
            Assert.AreEqual(testString, target.DefaultNamespace, "DefaultNamespace property value was not initialized by expected value;");
            Assert.IsTrue((VSConstants.S_OK == target.IsPageDirty()), "IsDirty status was unexpected after changing of the property of the tested object.");
        }
Exemple #3
0
        public void AssemblyNameTest()
        {
            GeneralPropertyPage target = generalPropertyPage;

            target.AssemblyName = testString;
            Assert.AreEqual(testString, gppAccessor.assemblyName, target.ApplicationIcon,
                            "AssemblyName property value was not initialized by expected value.");
            Assert.IsTrue((VSConstants.S_OK == target.IsPageDirty()), "IsDirty status was unexpected after changing of the property of the tested object.");
        }
Exemple #4
0
        public void StartupObjectTest()
        {
            GeneralPropertyPage target = generalPropertyPage;

            target.StartupObject = testString;
            Assert.AreEqual(testString, gppAccessor.startupObject, target.StartupObject,
                            "StartupObject property value was not initialized by expected value.");
            Assert.IsTrue((VSConstants.S_OK == target.IsPageDirty()),
                          "IsDirty status was unexpected after changing of the property of the tested object.");
        }
        public void TargetPlatformLocationTest()
        {
            GeneralPropertyPage target = generalPropertyPage;

            target.TargetPlatformLocation = testString;
            Assert.AreEqual(testString, target.TargetPlatformLocation,
                            "TargetPlatformLocation property value was not initialized by expected value.");
            Assert.IsTrue((VSConstants.S_OK == target.IsPageDirty()),
                          "IsDirty status was unexpected after changing of the property of the tested object.");
        }
Exemple #6
0
        public void OutputTypeTest()
        {
            GeneralPropertyPage target          = generalPropertyPage;
            OutputType          expectedOutType = OutputType.Library;

            target.OutputType = expectedOutType;

            Assert.AreEqual(expectedOutType, target.OutputType,
                            "OutputType property value was initialized by unexpected value.");
            Assert.IsTrue((VSConstants.S_OK == target.IsPageDirty()),
                          "IsDirty status was unexpected after changing of the property of the tested object.");
        }
        public void TargetPlatformTest()
        {
            GeneralPropertyPage target = generalPropertyPage;
            PlatformType        expectedPlatformType = PlatformType.v2;

            target.TargetPlatform = expectedPlatformType;

            Assert.AreEqual(expectedPlatformType, target.TargetPlatform,
                            "TargetPlatform property value was not initialized by expected value.");
            Assert.IsTrue((VSConstants.S_OK == target.IsPageDirty()),
                          "IsDirty status was unexpected after changing of the property of the tested object.");
        }