public void Print( [Aliases("c")] [MoreThan(5)] [LessOrEqualTo(10)] Int32 count, [Aliases("m.msg"), DefaultValue("hello")] String message, String prefix) { for (var i = 0; i < count; i++) { Printer.Print(prefix + message); } }
public void Print( [Aliases("c")] Int32 count, [Aliases("m,msg")] [DefaultValue("hello")] String message, String prefix, [Aliases("u")] [DefaultValue(false)] Boolean upper) { for (var i = 0; i < count; i++) { var text = prefix + message; Printer.Print(upper ? text.ToUpper() : text); } }
public void Zoo([DefaultValue("5")] int n) { Printer.Print(n.ToString()); }
public void Foo(string x, Guid g) { Printer.Print(x + g); }
public void Help(string h, string boo) { Printer.Print("help"); }
public void Help(string h) { Printer.Print("help"); }
public void ListReturnsParens() => Assert.Equal("()", Printer.Print(new AstList()));
public void Foo(string x, int y) { Printer.Print("works!"); }
public void Foo(string x, Uri u) { Printer.Print(x + u); }
public void ShowHelp(string help) { Printer.Print("help"); }
public void Bar() { Printer.Print("zoo"); }
public void Foo(string x) { Printer.Print(x); }
public void SymbolReturnsText() => Assert.Equal("rawr", Printer.Print(new AstSymbol("rawr")));
public void RecursiveList() => Assert.Equal("(ra ())", Printer.Print(new AstList(new AstSymbol("ra"), new AstList())));
public void FilledListReturnsSExpression() => Assert.Equal("(ra wr)", Printer.Print(new AstList(new AstSymbol("ra"), new AstSymbol("wr"))));
public void Help(string help) { Printer.Print(help); }
public void Print([DefaultValue("bar")] string foo) { Printer.Print(foo); }
public void Print() { Printer.Print("x"); }
public void Foo() { Printer.Print("works!"); }
public void Foo(int h) { Printer.Print("a"); }
public void Print(string foo) { Printer.Print(foo); }
public void Foo(string h, int n) { Printer.Print("a"); }