~ubuntu-branches/ubuntu/utopic/mono/utopic

« back to all changes in this revision

Viewing changes to mcs/class/corlib/Test/System/TimeSpanTest.cs

  • Committer: Package Import Robot
  • Author(s): Mirco Bauer, Jb Evain, Mirco Bauer
  • Date: 2012-02-05 19:21:10 UTC
  • mfrom: (5.3.6 sid)
  • Revision ID: package-import@ubuntu.com-20120205192110-783fz9gipue62fb4
Tags: 2.10.8.1-1
[ Jb Evain ]
* [b31e994] [mono-api-info] try to read local files before using the resolver

[ Mirco Bauer ]
* [e6134cc] Imported Upstream version 2.10.8.1
* [e8b34c9] Added s390x specific symbols to libmono-2.0-1.symbols.s390x
* [ad7a051] Copied armel specific symbols to libmono-2.0-1.symbols.armhf
* [1001d95] Added new symbol to libmono-2.0-1.symbols
* [c17bea6] Build mono-api-diff and MonoGetAssemblyName with dmcs
            instead of gmcs
* [1388ad0] Bumped clilibs of libmono-system4.0-cil,
            libmono-sqlite{2,4}.0-cil and
            libmono-microsoft-build-framework4.0-cil to >= 2.10.7
* [7bb7153] Added -a switch (ABI) to mono-api-check
* [b35dd98] Imported Upstream version 2.10.8.1
* [a251cb0] Fixed typo in package short description of
            libmono-webmatrix-data4.0-cil (closes: #656671)
* [b35dd98] Imported Upstream version 2.10.8.1
* [03f5030] Updated RUN_MONO variable for a 4.0 runtime

Show diffs side-by-side

added added

removed removed

Lines of Context:
794
794
                ParseHelper (" 13:45:15 ",false, false, "13:45:15");
795
795
                ParseHelper (" -1:2:3 ", false, false, "-01:02:03");
796
796
 
797
 
#if NET_4_0
 
797
#if NET_4_0 || NET_2_1
798
798
                // In 4.0 when the first part is out of range, it parses it as day.
799
799
                ParseHelper (" 25:11:12 ", false, false, "25.11:12:00");
800
800
                ParseHelper (" 24:11:12 ", false, false, "24.11:12:00");
811
811
                ParseHelper ("24:60:60", false, true, "dontcare");
812
812
                ParseHelper ("0001:0002:0003.12     ", false, false, "01:02:03.1200000");
813
813
 
814
 
#if NET_4_0
 
814
#if NET_4_0 || NET_2_1
815
815
                // In 4.0 when a section has more than 7 digits an OverflowException is thrown.
816
816
                ParseHelper (" 1:2:3:12345678 ", false, true, "dontcare");
817
817
#else
818
818
                ParseHelper (" 1:2:3:12345678 ", true, false, "dontcare"); 
819
819
#endif
820
820
 
821
 
#if NET_4_0             
 
821
#if NET_4_0     || NET_2_1
822
822
                ParseHelper ("10:11:12:13", false, false, "10.11:12:13"); // Days using : instead of . as separator
823
823
                ParseHelper ("10.11", true, false, "dontcare"); // days+hours is invalid
824
824
 
894
894
        {
895
895
                // hours should be between 0 and 23 but format is also invalid (too many dots)
896
896
                // In 2.0 overflow as precedence over format, but not in 4.0
897
 
#if NET_4_0
 
897
#if NET_4_0 || NET_2_1
898
898
                try {
899
899
                        TimeSpan.Parse ("0.99.99.0");
900
900
                        Assert.Fail ("#A1");