public void Test(string test, string expected, bool useCamelCase) { // Act var clean = DatabaseReader.CleanUp(test); var singular = clean; var nameHumanCase = (useCamelCase ? Inflector.ToTitleCase(singular) : singular).Replace(" ", "").Replace("$", "").Replace(".", ""); // Assert Assert.AreEqual(expected, nameHumanCase); }