From cb0feac06444cde70533d00f2572294ca66051a4 Mon Sep 17 00:00:00 2001 From: kumpera Date: Fri, 5 Mar 2010 02:41:59 +0000 Subject: [PATCH] 2010-03-04 Rodrigo Kumpera *BigIntegerTest.cs: Tests for Equals. git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@153067 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs | 11 +++++++++++ class/System.Numerics/Test/System.Numerics/ChangeLog | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs b/class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs index bd1029616d..287a85bbcc 100644 --- a/class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs +++ b/class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs @@ -56,6 +56,17 @@ namespace MonoTests.System.Numerics }*/ [Test] + public void TestEquals () { + var a = new BigInteger (10); + var b = new BigInteger (10); + var c = new BigInteger (-10); + + Assert.AreEqual (a, b, "#1"); + Assert.AreNotEqual (a, c, "#2"); + Assert.AreNotEqual (a, 10, "#3"); + } + + [Test] public void ByteArrayCtor () { try { diff --git a/class/System.Numerics/Test/System.Numerics/ChangeLog b/class/System.Numerics/Test/System.Numerics/ChangeLog index 3f205e6494..a33d9c4200 100644 --- a/class/System.Numerics/Test/System.Numerics/ChangeLog +++ b/class/System.Numerics/Test/System.Numerics/ChangeLog @@ -1,5 +1,9 @@ 2010-03-04 Rodrigo Kumpera + *BigIntegerTest.cs: Tests for Equals. + +2010-03-04 Rodrigo Kumpera + *BigIntegerTest.cs: Tests for long constructor and coersion operator. 2010-03-04 Rodrigo Kumpera -- 2.11.4.GIT