/// <summary> /// Helper method to check options. /// </summary> /// <param name="app"></param> /// <returns>True if options are OK.</returns> private bool CheckOptions(CommandLineApplication app) { if (Property.Length > 0) { if (!HomeData.IsProperty(Property)) { _logger?.LogError($"The property '{Property}' has not been found."); return(false); } } return(true); }
public void TestProperty(string property) { Assert.True(HomeData.IsProperty(property)); Assert.NotNull(_home.GetPropertyValue(property)); }