Пример #1
0
 public void to_string_by_default_gets_pattern()
 {
     const string pattern = "some/pattern";
     var routeDefinition = new RouteDefinition(pattern);
     routeDefinition.ToString().ShouldEqual(pattern);
 }
Пример #2
0
 public void to_string_gets_pattern_and_type_full_name()
 {
     var url = new RouteDefinition<SampleViewModel>("my/sample");
     url.ToString().ShouldEqual("{0} --> {1}".ToFormat(url.Pattern, typeof(SampleViewModel).FullName));
 }