dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System TestDouble.cs,N


From: Jonathan Springer <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System TestDouble.cs,NONE,1.1 SuiteSystem.cs,1.1,1.2
Date: Wed, 01 Jan 2003 13:13:00 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System
In directory subversions:/tmp/cvs-serv3152/tests/runtime/System

Modified Files:
        SuiteSystem.cs 
Added Files:
        TestDouble.cs 
Log Message:


Support for parsing floating-point and decimal numbers.


--- NEW FILE ---
/*
 * TestDouble.cs - Test class for "System.Double" 
 *
 * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
 * Copyright (C) 2002  FSF.
 * 
 * Authors : Autogenerated using csdoc2test 
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

using CSUnit;
using System;

public class TestDouble : TestCase
 {
        // Constructor.
        public TestDouble(String name)  : base(name)
        {
                // Nothing to do here.
        }

        // Set up for the tests.
        protected override void Setup()
        {
                // Nothing to do here.
        }

        // Clean up after the tests.
        protected override void Cleanup()
        {
                // Nothing to do here.
        }
        public void TestDoubleCompareTo()
        {
        /*TODO*/
        }

        public void TestDoubleEquals()
        {
        /*TODO*/
        }

        public void TestDoubleGetHashCode()
        {
        /*TODO*/
        }

        public void TestDoubleIsInfinity()
        {
        /*TODO*/
        }

        public void TestDoubleIsNaN()
        {
        /*TODO*/
        }

        public void TestDoubleIsNegativeInfinity()
        {
        /*TODO*/
        }

        public void TestDoubleIsPositiveInfinity()
        {
        /*TODO*/
        }

        public void TestDoubleParse()
        {
                AssertEquals("Double.Parse(\"1.0\")",
                                1.0d, Double.Parse("1.0"));
                AssertEquals("Double.Parse(\"-1.0\")",
                                -1.0d, Double.Parse("-1.0"));
                AssertEquals("Double.Parse(\"1.0E+2\")",
                                100d, Double.Parse("1.0E+2"));
        }

        public void TestDoubleToString()
        {
        /*TODO*/
        }
}

Index: SuiteSystem.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/SuiteSystem.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** SuiteSystem.cs      29 Nov 2002 04:09:13 -0000      1.1
--- SuiteSystem.cs      1 Jan 2003 18:12:58 -0000       1.2
***************
*** 29,32 ****
--- 29,33 ----
                                TestSuite suite = new TestSuite("Core Class 
Tests");
                                suite.AddTests(typeof(TestBoolean));
+                               suite.AddTests(typeof(TestDouble));
                                suite.AddTests(typeof(TestSByte));
                                suite.AddTests(typeof(TestString));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]