public static void EnumConvert_ToInt16() { Assert.Equal(short.MinValue, EnumConvert.ToInt16(Int16Enum.MinValue)); Assert.Equal(short.MaxValue, EnumConvert.ToInt16(Int16Enum.MaxValue)); Assert.Equal(unchecked ((short)int.MinValue), EnumConvert.ToInt16(Int32Enum.MinValue)); Assert.Equal(unchecked ((short)ushort.MaxValue), EnumConvert.ToInt16(UInt16Enum.MaxValue)); }