public void RemoveReservedWordsPartName() { // Arrange var inString = "Neilston Community Wind Farm"; var outString = "Neilston"; var preProcessor = new PreProcessor(); // Act var result = preProcessor.ApplyPreProcess(inString, PreProcessTypesEnum.RemoveReservedWords); // Assert Assert.AreEqual(outString, result, "Expectd Community, Wind and Farm to be removed leaving Neilston."); }
public void RemoveSpecialCharactersNoneToRemove() { // Arrange var inString = "ThereAreNoSpacesInThis"; var outString = "ThereAreNoSpacesInThis"; var preProcessor = new PreProcessor(); // Act var result = preProcessor.ApplyPreProcess(inString, PreProcessTypesEnum.RemoveReservedWords); // Assert Assert.AreEqual(outString, result, "Expectd nothing to be removed leaving 'ThereAreNoSpacesInThis'."); }
public void RemoveReservedWordsNoneToRemove() { // Arrange var inString = "Neilston"; var outString = "Neilston"; var preProcessor = new PreProcessor(); // Act var result = preProcessor.ApplyPreProcess(inString, PreProcessTypesEnum.RemoveReservedWords); // Assert Assert.AreEqual(outString, result, "Expectd no reserved words to be removed leaving Neilston."); }
public void RemoveSpecialCharactersSomeToRemove() { // Arrange var inString = "There are some spaces in this"; var outString = "Therearesomespacesinthis"; var preProcessor = new PreProcessor(); // Act var result = preProcessor.ApplyPreProcess(inString, PreProcessTypesEnum.RemoveSpecialCharacters); // Assert Assert.AreEqual(outString, result, "Expectd all spaces to be removed leaving 'Therearesomespacesinthis'."); }