Пример #1
0
        public static void AssertPropertyDoesNotExist(this BuildLog log, string propertyName)
        {
            var exists = log.TryGetPropertyValue(propertyName, out var propertyValue);

            exists.Should().BeFalse(
                "Not expecting the property to exist. Property: {0}, Value: {1}", propertyName, propertyValue);
        }
Пример #2
0
        public static string AssertPropertyExists(this BuildLog log, string propertyName)
        {
            var exists = log.TryGetPropertyValue(propertyName, out var propertyValue);

            exists.Should().BeTrue(
                "Expecting the property to exist. Property: {0}, Value: {1}", propertyName, propertyValue);

            return(propertyValue);
        }