public void Value_GetPostBuildEvent_ReturnsProjectsPostBuildEvent() { CreateProperties(); msbuildProject.SetProperty("PostBuildEvent", "Test"); var postBuildEventProperty = properties.Item("PostBuildEvent").Value; Assert.AreEqual("Test", postBuildEventProperty); }
public void Value_GetCopyToOutputDirectoryPropertyValue_ReturnsCopyToOutputDirectoryValueFromMSBuildProject() { CreateProjectItemProperties(); msbuildFileProjectItem.CopyToOutputDirectory = SD.CopyToOutputDirectory.PreserveNewest; var propertyObject = properties.Item("CopyToOutputDirectory").Value; var propertyValue = (UInt32)propertyObject; var propertyValueAsEnum = (SD.CopyToOutputDirectory)propertyValue; Assert.AreEqual(SD.CopyToOutputDirectory.PreserveNewest, propertyValueAsEnum); }