public void UnsafeEnumsBasicTest() { TestHelper.ExpectException <ArgumentException>(() => UnsafeEnums.GetUnderlyingType <int>()); TestHelper.ExpectException <ArgumentException>(() => UnsafeEnums.GetUnderlyingType <Enum>()); TestHelper.ExpectException <ArgumentException>(() => UnsafeEnums.GetUnderlyingType <string>()); Assert.AreEqual(typeof(short), UnsafeEnums.GetUnderlyingType <DateFilterOperator>()); }