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