Beispiel #1
0
        public void ApplicationPropertyTest()
        {
            string name = "Some random name";
            OANestedProjectProperty testProperty = VisualStudio_Project_Samples_OANestedProjectPropertyAccessor.CreatePrivate(projectProperties, name);

            Assert.IsNotNull(testProperty, "The OANestedProjectProperty instance was not created successfully.");
            Assert.IsNull(testProperty.Application, "Application property was returned as initialized value.");
        }
Beispiel #2
0
        public void NamePropertyTest()
        {
            string name = "Some random name";
            OANestedProjectProperty testProperty = VisualStudio_Project_Samples_OANestedProjectPropertyAccessor.CreatePrivate(projectProperties, name);

            Assert.IsNotNull(testProperty, "The OANestedProjectProperty instance was not created successfully.");
            Assert.AreEqual(name, testProperty.Name, "ProjectProperty Name was initialized by unexpected value.");
        }
Beispiel #3
0
        public void NumIndicesPropertyTest()
        {
            string name          = "Some Random Name";
            short  expectedValue = 0;
            OANestedProjectProperty testProperty = VisualStudio_Project_Samples_OANestedProjectPropertyAccessor.CreatePrivate(projectProperties, name);

            Assert.IsNotNull(testProperty, "The OANestedProjectProperty instance was not created successfully.");
            Assert.AreEqual(expectedValue, testProperty.NumIndices, "Property NumIndices was returned unexpected value.");
        }
Beispiel #4
0
        public void ValueAsNullPropertyTest()
        {
            string name = "SomeRandomName";
            OANestedProjectProperty testProperty = VisualStudio_Project_Samples_OANestedProjectPropertyAccessor.CreatePrivate(projectProperties, name);

            Assert.IsNotNull(testProperty, "The OANestedProjectProperty instance was not created successfully.");

            testProperty.Value = null;
        }
Beispiel #5
0
        public void set_IndexedValueTest()
        {
            string name = "Some Random Name";
            OANestedProjectProperty testProperty = VisualStudio_Project_Samples_OANestedProjectPropertyAccessor.CreatePrivate(projectProperties, name);

            Assert.IsNotNull(testProperty, "The OANestedProjectProperty instance was not created successfully.");

            // simply call this method
            testProperty.set_IndexedValue(null, null, null, null, null);
        }
Beispiel #6
0
        public void InternalConstructorTest()
        {
            Assert.IsNotNull(nestedProject.Properties, "Node Properties was uninitialized.");
            Assert.IsTrue((nestedProject.Properties is OANestedProjectProperties), "Returned Node Properties was initialized by unexpected type value.");

            string name = "Some random name";
            OANestedProjectProperty testProperty = VisualStudio_Project_Samples_OANestedProjectPropertyAccessor.CreatePrivate(projectProperties, name);

            Assert.IsNotNull(testProperty, "The OANestedProjectProperty instance was not created successfully.");
        }
Beispiel #7
0
        public void get_IndexedValueTest()
        {
            string name = "Some Random Name";
            OANestedProjectProperty testProperty = VisualStudio_Project_Samples_OANestedProjectPropertyAccessor.CreatePrivate(projectProperties, name);

            Assert.IsNotNull(testProperty, "The OANestedProjectProperty instance was not created successfully.");

            object actualValue = testProperty.get_IndexedValue(null, null, null, null);

            Assert.IsNull(actualValue, "Method get_IndexValue was returned unexpected value.");
        }
Beispiel #8
0
        public void ObjectAndValuePropertiesTest()
        {
            string name = "SomeRandomName";
            OANestedProjectProperty testProperty = VisualStudio_Project_Samples_OANestedProjectPropertyAccessor.CreatePrivate(projectProperties, name);

            Assert.IsNotNull(testProperty, "The OANestedProjectProperty instance was not created successfully.");

            testProperty.Object = name;

            Assert.AreEqual((object)name, testProperty.Object, "ProjectProperty Object was initialized by unexpected value.");
            Assert.AreEqual((object)name, testProperty.Value, "ProjectProperty Value was initialized by unexpected value.");
            Assert.IsTrue(nestedProject.IsDirty, "After property changing IsDirty flag was not set to the false");
        }
Beispiel #9
0
        public void let_ValueMethodTest()
        {
            string name = "SomeRandomName";
            OANestedProjectProperty testProperty = VisualStudio_Project_Samples_OANestedProjectPropertyAccessor.CreatePrivate(projectProperties, name);

            Assert.IsNotNull(testProperty, "The OANestedProjectProperty instance was not created successfully.");

            int expectedValue = 77777;

            testProperty.let_Value(expectedValue);

            Assert.AreEqual(expectedValue.ToString(), testProperty.Value, "ProjectProperty Value was initialized by unexpected value.");
            Assert.IsTrue(nestedProject.IsDirty, "After property changing IsDirty flag was not set to the false");
        }
Beispiel #10
0
        public void DefaultConstructorTest()
        {
            OANestedProjectProperty target = new OANestedProjectProperty();

            Assert.IsNotNull(target, "The OANestedProjectProperty instance was not created successfully.");
        }
 public void DefaultConstructorTest()
 {
     OANestedProjectProperty target = new OANestedProjectProperty();
     Assert.IsNotNull(target, "The OANestedProjectProperty instance was not created successfully.");
 }
Beispiel #12
0
 internal VisualStudio_Project_Samples_OANestedProjectPropertyAccessor(OANestedProjectProperty target)
     : base(target, m_privateType)
 {
 }
Beispiel #13
0
 internal VisualStudio_Project_Samples_OANestedProjectPropertyAccessor(OANestedProjectProperty target)
     :
     base(target, m_privateType)
 {
 }