public void cleanupproperty_method_removes_underscores_with_underscore_modifier_enabled() { // Arrange CommonUtility util = new CommonUtility(); string input = "test_column"; string expected = ""; // Act string actual = util.CleanUpProperty(input, false, PropertyModifications.Underscore); // Assert Assert.AreEqual(expected, actual); }
public void cleanup_property_returns_compressed_property() { // Arrange CommonUtility util = new CommonUtility(); string propertyToClean = "Patent / Application No. (first-class)"; // Act string actual = util.CleanUpProperty(propertyToClean); string expected = "PatentApplicationNofirstclass"; // Assert Assert.AreEqual(expected, actual); }
public void cleanup_property_returns_underscored_property() { // Arrange CommonUtility util = new CommonUtility(); string propertyToClean = "Patent / Application No. (first-class)"; // Act string actual = util.CleanUpProperty(propertyToClean, false, PropertyModifications.Underscore); string expected = "Patent___Application_No___first_class_"; // Assert Assert.AreEqual(expected, actual); }
public void cleanup_property_removes_underscore_in_original_property() { // Arrange CommonUtility util = new CommonUtility(); string propertyToClean = "Patent / Application_No. (first-class)"; // Act string actual = util.CleanUpProperty(propertyToClean); string expected = "PatentApplicationNofirstclass"; // Assert Assert.AreEqual(expected, actual); }