public void ToInt32Test() { Assert.Throws<InvalidCastException>(() => Convert.ToInt32(DateTime.MaxValue)); }