public void IsInfinity()
 {
     Assert.ThrowsExact <AssertionException>(() => Assert.IsInfinity(float.NaN));
     Assert.ThrowsExact <AssertionException>(() => Assert.IsInfinity(double.NaN));
     Assert.DoesNotThrow(() => Assert.IsInfinity(float.PositiveInfinity));
     Assert.DoesNotThrow(() => Assert.IsInfinity(float.NegativeInfinity));
     Assert.ThrowsExact <AssertionException>(() => Assert.IsInfinity(1.34f));
     Assert.DoesNotThrow(() => Assert.IsInfinity(double.PositiveInfinity));
     Assert.DoesNotThrow(() => Assert.IsInfinity(double.NegativeInfinity));
     Assert.ThrowsExact <AssertionException>(() => Assert.IsInfinity(1.34d));
 }