public void Remove_lower_case() { string value = "1, 2-3 > < expreção, história, física, pêssego"; string newValue = "1, 2-3 > < exprecao, historia, fisica, pessego"; Assert.Equal(newValue, TextHandle.RemoveSpecialCharacters(value)); }
public void Ignore_null() { string value = null; string newValue = null; Assert.Equal(newValue, TextHandle.RemoveSpecialCharacters(value)); }
public void Clean_if_no_contains_a_z_or_number() { string value = " "; string newValue = string.Empty; Assert.Equal(newValue, TextHandle.RemoveSpecialCharacters(value)); }
public void Remove_upper_case() { string value = "1 | 2 & 3 $ EXPREÇÃO, HISTÓRIA, FÍSICA, PÊSSEGO"; string newValue = "1 | 2 & 3 $ EXPRECAO, HISTORIA, FISICA, PESSEGO"; Assert.Equal(newValue, TextHandle.RemoveSpecialCharacters(value)); }