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