public void IsEnum() { ExceptionAssert.Throws <ArgumentNullException>(() => Assumes.IsEnum(null, "foo")); ExceptionAssert.Throws(debugAssertException, () => Assumes.IsEnum(2, "foo")); Assumes.IsEnum(DayOfWeek.Friday, "foo"); ExceptionAssert.Throws <ArgumentNullException>(() => Assumes.IsEnum((object)null, "foo")); ExceptionAssert.Throws(debugAssertException, () => Assumes.IsEnum((object)2, "foo")); Assumes.IsEnum((object)DayOfWeek.Friday, "foo"); }