Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 public void TestProperty(string property)
 {
     Assert.True(HomeData.IsProperty(property));
     Assert.NotNull(_home.GetPropertyValue(property));
 }