public void ToChar_ValueNull() { string str = null; Char? value = ConvertEx.ToChar(str); Assert.IsNull(value); }
public void ToChar_ValueEmpty() { string str = string.Empty; Char? value = ConvertEx.ToChar(str); Assert.IsNull(value); }
public void ToChar_ValueValid() { string str = "1"; Char? value = ConvertEx.ToChar(str); Assert.AreEqual(value, '1'); }