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