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