Ejemplo n.º 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.");
        }
Ejemplo n.º 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.");
        }
Ejemplo n.º 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.");
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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.");
        }
Ejemplo n.º 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.");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 10
0
        public void DefaultConstructorTest()
        {
            OANestedProjectProperty target = new OANestedProjectProperty();

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