private static void AssertContainsProperty(string name, string value, IVsProjectProperties properties)
        {
            var property = properties.Item(name);

            Assert.NotNull(property);
            Assert.Equal(name, property.Name);
            Assert.Equal(value, property.Value);
        }
Esempio n. 2
0
        private static string GetPropertyValueOrNull(
            IVsProjectProperties properties, string propertyName)
        {
            try
            {
                return(MSBuildStringUtility.TrimAndGetNullForEmpty(properties?.Item(propertyName)?.Value));
            }
            catch (ArgumentException)
            {
            }
            catch (KeyNotFoundException)
            {
            }

            return(null);
        }