public void Sort_InputWithUpperCaseLetters_UpperCaseMappedToLower() { // Arrange var input = "ABCD"; var sortAlgo = new SortAlgoBuilder().Build(); // Act var sut = _createTestSubject(sortAlgo); var output = sut.Sort(input); // Assert Assert.AreEqual("abcd", output); }
public void Sort_InputWithPunctuation_PunctuationFilteredOut() { // Arrange var input = "a!b.c,d?"; var sortAlgo = new SortAlgoBuilder().Build(); // Act var sut = _createTestSubject(sortAlgo); var output = sut.Sort(input); // Assert Assert.AreEqual("abcd", output); }
public void Sort_CalledSortAlgo() { // Arrange var input = "test123"; var sortAlgo = new SortAlgoBuilder().Build(); // Act var sut = _createTestSubject(sortAlgo); sut.Sort(input); // Assert sortAlgo .Received(1) .Sort(input); }