forked from mono/mono
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2004-06-05 Sebastien Pouliot <[email protected]>
* ConvertTest.cs: Added tests to convert min/max values of integer types to strings in all bases. * SByteTest.cs: Added test to parse min/max values. svn path=/trunk/mcs/; revision=28869
- Loading branch information
Sebastien Pouliot
committed
Jun 5, 2004
1 parent
8fde154
commit 4e222e0
Showing
3 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2004-06-05 Sebastien Pouliot <[email protected]> | ||
|
||
* ConvertTest.cs: Added tests to convert min/max values of integer | ||
types to strings in all bases. | ||
* SByteTest.cs: Added test to parse min/max values. | ||
|
||
2004-06-04 Sebastien Pouliot <[email protected]> | ||
|
||
* MathTest.cs: Added case to check for negative 0 (double) in | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
// Mario Martinez ([email protected]) | ||
// | ||
// (C) Ximian, Inc. http://www.ximian.com | ||
// Copyright (C) 2004 Novell (http://www.novell.com) | ||
// | ||
|
||
using NUnit.Framework; | ||
|
@@ -12,7 +13,8 @@ | |
namespace MonoTests.System | ||
{ | ||
|
||
public class SByteTest : TestCase | ||
[TestFixture] | ||
public class SByteTest : Assertion | ||
{ | ||
private const SByte MySByte1 = -42; | ||
private const SByte MySByte2 = -128; | ||
|
@@ -36,12 +38,6 @@ public class SByteTest : TestCase | |
"127", "127.00000", "12,700.00000 %", "0007f"}; | ||
private NumberFormatInfo Nfi = NumberFormatInfo.InvariantInfo; | ||
|
||
public SByteTest() {} | ||
|
||
protected override void SetUp() | ||
{ | ||
} | ||
|
||
public void TestMinMax() | ||
{ | ||
AssertEquals(SByte.MinValue, MySByte2); | ||
|
@@ -139,6 +135,13 @@ public void TestParse() | |
Assert(typeof(FormatException) == e.GetType()); | ||
} | ||
} | ||
|
||
[Test] | ||
public void Parse_MinMax () | ||
{ | ||
AssertEquals ("MinValue", SByte.MinValue, SByte.Parse ("-128")); | ||
AssertEquals ("MaxValue", SByte.MaxValue, SByte.Parse ("127")); | ||
} | ||
|
||
public void TestToString() | ||
{ | ||
|