public void ImplementationOne_NullString_ReturnsTrue() { // Arrange const bool expected = true; const string input = null; // Act var actual = Question1_1.AreAllCharactersUnique(input); // Assert Assert.AreEqual(expected, actual); }
public void ImplementationTwo_Duplicates_ReturnsFalse() { // Arrange const bool expected = false; const string input = "aba"; // Act var actual = Question1_1.AreAllCharactersUniqueNoAdditionalMemory(input); // Assert Assert.AreEqual(expected, actual); }
public void ImplementationTwo_CasingDifference_ReturnsTrue() { // Arrange const bool expected = true; const string input = "Aa"; // Act var actual = Question1_1.AreAllCharactersUniqueNoAdditionalMemory(input); // Assert Assert.AreEqual(expected, actual); }
public void ImplementationTwo_EmptyString_ReturnsTrue() { // Arrange const bool expected = true; var input = string.Empty; // Act var actual = Question1_1.AreAllCharactersUniqueNoAdditionalMemory(input); // Assert Assert.AreEqual(expected, actual); }