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."); }
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."); }
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."); }
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; }
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); }
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."); }
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."); }
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"); }
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"); }