G
Guest
These assertions fail under the .NET framework 1.1. The correct behavior should be for all of them to succeed (as correctly documented in the MSDN library and as specified by the IEEE floating point math standard)
Debug.Assert(Single.PositiveInfinity != Single.PositiveInfinity)
Debug.Assert(Single.NegativeInfinity != Single.NegativeInfinity)
Debug.Assert(1.0f/0.0f != 1.0f/0.0f)
Debug.Assert(Double.PositiveInfinity != Double.PositiveInfinity)
Debug.Assert(Double.NegativeInfinity != Double.NegativeInfinity)
Debug.Assert(1.0/0.0 != 1.0/0.0)
Debug.Assert(Single.PositiveInfinity != Single.PositiveInfinity)
Debug.Assert(Single.NegativeInfinity != Single.NegativeInfinity)
Debug.Assert(1.0f/0.0f != 1.0f/0.0f)
Debug.Assert(Double.PositiveInfinity != Double.PositiveInfinity)
Debug.Assert(Double.NegativeInfinity != Double.NegativeInfinity)
Debug.Assert(1.0/0.0 != 1.0/0.0)