예제 #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");
 }
예제 #2
0
 public void parse_with_name_only()
 {
     var input = new Input("Foo");
     input.Name.ShouldEqual("Foo");
     input.Default.ShouldBeNull();
     input.Description.ShouldEqual("Foo");
 }
예제 #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");
 }