NullableTypes/src/Tests AssemblyInfo.cs,1.9,1.10 NullableDateTimeTest.cs,1.12,1.13
Status: Inactive
Brought to you by:
lukadotnet
From: \(luKa\) <luk...@us...> - 2004-05-25 22:05:21
|
Update of /cvsroot/nullabletypes/NullableTypes/src/Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6035/src/Tests Modified Files: AssemblyInfo.cs NullableDateTimeTest.cs Log Message: Index: NullableDateTimeTest.cs =================================================================== RCS file: /cvsroot/nullabletypes/NullableTypes/src/Tests/NullableDateTimeTest.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** NullableDateTimeTest.cs 20 Feb 2004 00:42:22 -0000 1.12 --- NullableDateTimeTest.cs 25 May 2004 22:05:07 -0000 1.13 *************** *** 14,22 **** // full range persists // Code upgrade: Tidy up source ! // 06-Ott-2003 Luca Upgrade New test: XmlSerializableSchema // 06-Oct-2003 Luca Upgrade Code upgrade: Replaced tabs with spaces and removed commented out code // 06-Dic-2003 Luca Bug Fix Replaced Target Namespace for Xml Schema to reflect changes in the target type // 18-Feb-2004 Luca Upgrade New test: XmlSerializableEmptyElementNil for xml deserialization of a nil // value with a non empty element // --- 14,25 ---- // full range persists // Code upgrade: Tidy up source ! // 06-Oct-2003 Luca Upgrade New test: XmlSerializableSchema // 06-Oct-2003 Luca Upgrade Code upgrade: Replaced tabs with spaces and removed commented out code // 06-Dic-2003 Luca Bug Fix Replaced Target Namespace for Xml Schema to reflect changes in the target type // 18-Feb-2004 Luca Upgrade New test: XmlSerializableEmptyElementNil for xml deserialization of a nil // value with a non empty element + // 23-May-2004 Luca Upgrade Code upgrade: test NullableDateTimeConversionOperatorFromNullableString + // improved to make it independent from user regional settings (problem reported + // by imagina (hemmachat sf user) // *************** *** 27,30 **** --- 30,35 ---- using sysXml = System.Xml; using sysXmlScm = System.Xml.Schema; + using sysGlb = System.Globalization; + using sysThr = System.Threading; [nu.TestFixture] *************** *** 46,49 **** --- 51,55 ---- } + #region Field Tests - A# [nu.Test] *************** *** 450,458 **** [nu.Test] public void NullableDateTimeConversionOperatorFromNullableString() { ! NullableString x = new NullableString("2002-2-22"); ! sys.DateTime tx = new sys.DateTime(2002, 2, 22); ! nua.AssertEquals("TestI#02", new NullableDateTime(tx), ! (NullableDateTime)x); } --- 456,471 ---- [nu.Test] public void NullableDateTimeConversionOperatorFromNullableString() { ! sysGlb.CultureInfo currCult = sys.Threading.Thread.CurrentThread.CurrentCulture; ! try { ! sysThr.Thread.CurrentThread.CurrentCulture = sysGlb.CultureInfo.InvariantCulture; ! NullableString x = new NullableString("2002-2-22"); ! sys.DateTime tx = new sys.DateTime(2002, 2, 22); ! nua.AssertEquals("TestI#02", new NullableDateTime(tx), ! (NullableDateTime)x); ! } ! finally { ! sysThr.Thread.CurrentThread.CurrentCulture = currCult; ! } } Index: AssemblyInfo.cs =================================================================== RCS file: /cvsroot/nullabletypes/NullableTypes/src/Tests/AssemblyInfo.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** AssemblyInfo.cs 22 Oct 2003 01:42:11 -0000 1.9 --- AssemblyInfo.cs 25 May 2004 22:05:07 -0000 1.10 *************** *** 12,16 **** [assembly: AssemblyCompany("Luca Minudel")] [assembly: AssemblyProduct("NullableTypes")] // Product Name ! [assembly: AssemblyCopyright("© 2003 Luca Minudel, MIT license")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] --- 12,16 ---- [assembly: AssemblyCompany("Luca Minudel")] [assembly: AssemblyProduct("NullableTypes")] // Product Name ! [assembly: AssemblyCopyright("© 2003-2004 Luca Minudel, MIT license")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] *************** *** 28,33 **** // by using the '*' as shown below: ! [assembly: AssemblyVersion("1.1.*")] ! [assembly: AssemblyInformationalVersion("1.1.1")] // odd beta version 1.1.* - stable will be 1.2 // --- 28,33 ---- // by using the '*' as shown below: ! [assembly: AssemblyVersion("1.2.*")] ! [assembly: AssemblyInformationalVersion("1.2")] // odd beta version 1.1.* - stable will be 1.2 // |