public void WordsToLowerUpperCase_WordsToCapitalV1_ActualEqualExpected3() { // Arrange var value = "a LazY dOG waLkS homE."; var expected = "A Lazy Dog Walks Home."; var wtc = new WordsToLowerUpperCase(); // Act var actual = wtc.WordsToCapitalV1(value); // Assert Assert.Equal(expected, actual); }
public void WordsToLowerUpperCase_WordsToCapitalV1_ActualEqualExpected1() { // Arrange var value = "THE LAZY DOG WALKS Home."; var expected = "The Lazy Dog Walks Home."; var wtc = new WordsToLowerUpperCase(); // Act var actual = wtc.WordsToCapitalV1(value); // Assert Assert.Equal(expected, actual); }
public void WordsToLowerUpperCase_WordsToCapitalV1_ActualEqualExpected2() { // Arrange var value = "the lazy dog walks 1 block home."; var expected = "The Lazy Dog Walks 1 Block Home."; var wtc = new WordsToLowerUpperCase(); // Act var actual = wtc.WordsToCapitalV1(value); // Assert Assert.Equal(expected, actual); }
public void WordsToLowerUpperCase_ReadAllTextFromFileRunWordsToCapitalV1_ActualEqualExpected1() { var path = Path.Combine(TestDataPath, "test.txt"); var value = File.ReadAllText(path); var expected = "The Quick Brown Fox Jumps Over The Lazy Dog."; // Arrange var wtc = new WordsToLowerUpperCase(); // Act var actual = wtc.WordsToCapitalV1(value); // Assert Assert.Equal(expected, actual); }