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