public void WhenContainsSpecialCharacters_RemoveThemAndReturnNextOfSequence() { var sequence = InfiniteAlphabetSequence.Generate("ab#c d*"); Assert.AreEqual("abce", sequence); }
public void WhenStringEmpty_ReturnFirstAlphabetLetter() { var sequence = InfiniteAlphabetSequence.Generate(""); Assert.AreEqual("A", sequence); }
public void WhenNotCapitalIfSequenceWithMoreThanOneCharacter_ReturnNextOfTheSequence() { var sequence = InfiniteAlphabetSequence.Generate("ghij"); Assert.AreEqual("ghik", sequence); }
public void WhenNotCapitalAndIfSequenceWithOneCharacter_ReturnNextOfTheSequence() { var sequence = InfiniteAlphabetSequence.Generate("g"); Assert.AreEqual("h", sequence); }
public void WhenNotCapitalAndLastAlphabetLetter_StartsFromTheBegining() { var sequence = InfiniteAlphabetSequence.Generate("z"); Assert.AreEqual("aa", sequence); }
public void IfSequenceWithMoreThanOneCharacter_ReturnNextOfTheSequence() { var sequence = InfiniteAlphabetSequence.Generate("GHIJ"); Assert.AreEqual("GHIK", sequence); }
public void WhenLastAlphabetLetter_StartsFromTheBegining() { var sequence = InfiniteAlphabetSequence.Generate("Z"); Assert.AreEqual("AA", sequence); }