diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2004-08-17 21:54:18 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2004-08-17 21:54:18 +0400 |
commit | eda1a34ec69bb8040ca2c9ff0f6b9422b933d5ba (patch) | |
tree | ab0e9a8ebddee63caa2c6c9a999832694e05112f /mcs | |
parent | 7d35d3d45441bead53354b1d3b8d6fcb381d90f1 (diff) |
2004-08-17 Sebastien Pouliot <sebastien@ximian.com>
* VersionTest.cs: Added tests when cloning a version with no build and
no revision numbers (-1).
svn path=/branches/mono-1-0/mcs/; revision=32443
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/corlib/Test/System/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/corlib/Test/System/VersionTest.cs | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mcs/class/corlib/Test/System/ChangeLog b/mcs/class/corlib/Test/System/ChangeLog index b271ba154f9..1e1e1931fbe 100644 --- a/mcs/class/corlib/Test/System/ChangeLog +++ b/mcs/class/corlib/Test/System/ChangeLog @@ -1,3 +1,8 @@ +2004-08-17 Sebastien Pouliot <sebastien@ximian.com> + + * VersionTest.cs: Added tests when cloning a version with no build and + no revision numbers (-1). + 2004-06-23 Sebastien Pouliot <sebastien@ximian.com> * DoubleFormatterTest.cs: Added a new test for a negative roundtrip diff --git a/mcs/class/corlib/Test/System/VersionTest.cs b/mcs/class/corlib/Test/System/VersionTest.cs index 635a485cadc..2467d963a48 100644 --- a/mcs/class/corlib/Test/System/VersionTest.cs +++ b/mcs/class/corlib/Test/System/VersionTest.cs @@ -135,6 +135,12 @@ public class VersionTest : TestCase Assert ("A1", v1.Equals (v2)); Assert ("A2", !ReferenceEquals (v1, v2)); + + Version v3 = new Version (); // 0.0 + v2 = (Version) v3.Clone (); + + Assert ("A3", v3.Equals (v2)); + Assert ("A4", !ReferenceEquals (v3, v2)); } public void TestCompareTo () |