Esempio n. 1
0
        public void Name_ProjectItemNameIsTest_ReturnsTest()
        {
            CreateProjectItemProperties();
            var property = new ProjectItemProperty(projectItem, "Test");

            string name = property.Name;

            Assert.AreEqual("Test", name);
        }
Esempio n. 2
0
 public static Property FindProperty(this ProjectItem projectItem,ProjectItemProperty projectItemProperty)
 {
     return projectItem.Properties.Cast<Property>().Where(property => property.Name == projectItemProperty.ToString()).FirstOrDefault();
 }
Esempio n. 3
0
 public static Property FindProperty(this ProjectItem projectItem, ProjectItemProperty projectItemProperty)
 {
     return(projectItem.Properties.Cast <Property>().Where(property => property.Name == projectItemProperty.ToString()).FirstOrDefault());
 }
Esempio n. 4
0
 public static Property FindProperty(this ProjectItem projectItem, ProjectItemProperty projectItemProperty) {
     string projectItemPropertyStr = projectItemProperty.ToString();
     return projectItem.Properties.Cast<Property>().FirstOrDefault(property => property.Name == projectItemPropertyStr);
 }
Esempio n. 5
0
 set => SetValue(ProjectItemProperty, value);