Example #1
0
 public void parse_from_text_with_name_and_description()
 {
     var input = new Input("Foo,This is something");
     input.Name.ShouldEqual("Foo");
     input.Default.ShouldBeNull();
     input.Description.ShouldEqual("This is something");
 }
Example #2
0
 public void parse_with_name_only()
 {
     var input = new Input("Foo");
     input.Name.ShouldEqual("Foo");
     input.Default.ShouldBeNull();
     input.Description.ShouldEqual("Foo");
 }
Example #3
0
 public void parse_from_text_with_everything()
 {
     var input = new Input("Foo=%SHORTNAME%Foo,This is something");
     input.Name.ShouldEqual("Foo");
     input.Default.ShouldEqual("%SHORTNAME%Foo");
     input.Description.ShouldEqual("This is something");
 }