示例#1
0
 public void TitleCaser_Does_The_Right_Thing(string inputName, string titleCase, string blockCaps)
 {
     var caser = new Caser();
     caser.ToBlockCaps(inputName).ShouldBe(blockCaps, Case.Sensitive);
     caser.ToTitleCase(inputName).ShouldBe(titleCase, Case.Sensitive);
 }
示例#2
0
 public void Surname(string inputName, string titleCase, string blockCaps)
 {
     var caser = new Caser();
     caser.ToBlockCaps(inputName, NamePart.Surname).ShouldBe(blockCaps, Case.Sensitive);
     caser.ToTitleCase(inputName, NamePart.Surname).ShouldBe(titleCase, Case.Sensitive);
 }