コード例 #1
0
 public void DoubleWhiteSpaceShouldNotAffectOutput()
 {
     Assert.AreEqual("QC", AbbriviationBuilder.GetAbbriviation("QA  CPX"));
 }
コード例 #2
0
 public void NumbersWithPreceedingWhiteSpacesShouldNotBeTrunkated()
 {
     Assert.AreEqual("P11", AbbriviationBuilder.GetAbbriviation("Project 11"));
 }
コード例 #3
0
 public void DashesShouldNotBeConsidered()
 {
     Assert.AreEqual("QAC", AbbriviationBuilder.GetAbbriviation("QA-CPX"));
 }
コード例 #4
0
 public void SubStringToThreeIfNoWhiteSpaces()
 {
     Assert.AreEqual("FOO", AbbriviationBuilder.GetAbbriviation("FooBar"));
 }
コード例 #5
0
 public void ShouldAllowProjectsWithNamesLessThanThreeCharacters()
 {
     Assert.AreEqual("ST", AbbriviationBuilder.GetAbbriviation("st"));
     Assert.AreEqual("X", AbbriviationBuilder.GetAbbriviation("x"));
 }
コード例 #6
0
 public void DivideUpToThreeCharsIfWhiteSpaceExists()
 {
     Assert.AreEqual("FBB", AbbriviationBuilder.GetAbbriviation("Foo Bar Baz"));
 }
コード例 #7
0
 public void CastExceptionOnNullInput()
 {
     AbbriviationBuilder.GetAbbriviation(null);
 }
コード例 #8
0
 public void AbbreviationsShouldBeInUpperCase()
 {
     Assert.AreEqual("FT", AbbriviationBuilder.GetAbbriviation("fairy tales"));
     Assert.AreEqual("TRO", AbbriviationBuilder.GetAbbriviation("troy"));
 }