public void MakeValid_Null_Exception() { Assert.Throws <ArgumentNullException>(() => VariableNames.MakeValid(null)); }
public void MakeValid_Dots_AllValid() { Assert.Equal("data.SOURCE", VariableNames.MakeValid("data.SOURCE")); }
public void MakeValid_StartingNumber_StartingUnderscore() { Assert.Equal("_2pac", VariableNames.MakeValid("2pac")); }
public void MakeValid_SomeInvalid_OnlyValid() { Assert.Equal("hello", VariableNames.MakeValid("!h£ello?")); }
public void MakeValid_AllInvalid_Random() { Assert.True(VariableNames.IsValid(VariableNames.MakeValid("$<&/"))); }
public void MakeValid_Empty_Random() { Assert.True(VariableNames.IsValid(VariableNames.MakeValid(string.Empty))); }