public void GetDescription_InvalidValue_ReturnEmpty() { Assert.AreEqual(string.Empty, Enum.GetDescription <LogLevel>(100)); }
public void GetDescription_InvalidEnum_ReturnEmpty() { Assert.AreEqual(string.Empty, Enum.GetDescription <string>(DebugValue)); }
public void GetDescription_InvalidName_ReturnEmpty() { Assert.AreEqual(string.Empty, Enum.GetDescription <LogLevel>("Debug1")); }
public void GetDescription_Name_Nullable() { Assert.AreEqual(DebugDescription, Enum.GetDescription <LogLevel?>(DebugName)); }
public void GetDescription_Instance() { Assert.AreEqual(DebugDescription, Enum.GetDescription <LogLevel>(DebugInstance)); }
public void GetDescription_Value() { Assert.AreEqual(DebugDescription, Enum.GetDescription <LogLevel>(DebugValue)); }
public void GetDescription_ArgumentIsEmpty_ReturnEmpty() { Assert.AreEqual(string.Empty, Enum.GetDescription <LogLevel>(string.Empty)); }