コード例 #1
0
        public void TestThatGetLogoYieldsEmptyStringLogoCannotBeExpanded()
        {
            var attrib = new ArgumentSetAttribute
            {
                Logo       = "{",
                ExpandLogo = true
            };

            var argSet    = new ArgumentSetDefinition(attrib);
            var usageInfo = new ArgumentSetUsageInfo(argSet, null);

            var logo = usageInfo.Logo;

            logo.Should().BeEmpty();
        }
コード例 #2
0
 /// <summary>
 /// Generates a logo string for the application's entry assembly, or
 /// the assembly containing this method if no entry assembly could
 /// be found.
 /// </summary>
 /// <returns>The logo string.</returns>
 public static string GetLogo() => ArgumentSetUsageInfo.GetLogo(null);