Author: gert
Date: 2007-09-17 13:26:23 -0400 (Mon, 17 Sep 2007)
New Revision: 85911
Added:
trunk/gert/standalone/bug82674/
trunk/gert/standalone/bug82674/Assert.cs
trunk/gert/standalone/bug82674/MyComponent.cs
trunk/gert/standalone/bug82674/MyComponent.de.resx
trunk/gert/standalone/bug82674/MyComponent.en-GB.resx
trunk/gert/standalone/bug82674/MyComponent.fr-FR.resx
trunk/gert/standalone/bug82674/MyComponent.fr.resx
trunk/gert/standalone/bug82674/MyComponent.nl-BE.resx
trunk/gert/standalone/bug82674/MyComponent.nl-NL.resx
trunk/gert/standalone/bug82674/MyComponent.resx
trunk/gert/standalone/bug82674/OurComponent.nl-BE.resx
trunk/gert/standalone/bug82674/OurComponent.resx
trunk/gert/standalone/bug82674/default.build
trunk/gert/standalone/bug82674/test1.cs
trunk/gert/standalone/bug82674/test2.cs
trunk/gert/standalone/bug82674/test3.cs
trunk/gert/standalone/bug82674/test4.cs
trunk/gert/standalone/bug82674/test6.cs
Modified:
trunk/gert/standalone/bug82832/test.cs
trunk/gert/standalone/known-issues
Log:
Added test for bug #82674.
Added: trunk/gert/standalone/bug82674/Assert.cs
===================================================================
--- trunk/gert/standalone/bug82674/Assert.cs 2007-09-17 17:24:04 UTC (rev
85910)
+++ trunk/gert/standalone/bug82674/Assert.cs 2007-09-17 17:26:23 UTC (rev
85911)
@@ -0,0 +1,58 @@
+using System;
+using System.Globalization;
+
+class Assert
+{
+ public static void AreEqual (int x, int y, string msg)
+ {
+ if (x != y)
+ throw new Exception (string.Format
(CultureInfo.InvariantCulture,
+ "Expected: {0}, but was: {1}. {2}",
+ x, y, msg));
+ }
+
+ public static void AreEqual (string x, string y, string msg)
+ {
+ if (x != y)
+ throw new Exception (string.Format
(CultureInfo.InvariantCulture,
+ "Expected: {0}, but was: {1}. {2}",
+ x, y, msg));
+ }
+
+ public static void AreEqual (object x, object y, string msg)
+ {
+ if (x != y)
+ throw new Exception (string.Format
(CultureInfo.InvariantCulture,
+ "Expected: {0}, but was: {1}. {2}",
+ x, y, msg));
+ }
+
+ public static void Fail (string msg)
+ {
+ throw new Exception (msg);
+ }
+
+ public static void IsNotNull (object value, string msg)
+ {
+ if (value == null)
+ throw new Exception (msg);
+ }
+
+ public static void IsNull (object value, string msg)
+ {
+ if (value != null)
+ throw new Exception (msg);
+ }
+
+ public static void IsFalse (bool value, string msg)
+ {
+ if (value)
+ throw new Exception (msg);
+ }
+
+ public static void IsTrue (bool value, string msg)
+ {
+ if (!value)
+ throw new Exception (msg);
+ }
+}
Property changes on: trunk/gert/standalone/bug82674/Assert.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/MyComponent.cs
===================================================================
--- trunk/gert/standalone/bug82674/MyComponent.cs 2007-09-17 17:24:04 UTC
(rev 85910)
+++ trunk/gert/standalone/bug82674/MyComponent.cs 2007-09-17 17:26:23 UTC
(rev 85911)
@@ -0,0 +1,69 @@
+using System;
+using System.Drawing;
+
+namespace Mono.Tests
+{
+ public class MyComponent
+ {
+ public MyComponent (string title, string zone)
+ {
+ _title = title;
+ _zone = zone;
+ }
+
+ public Image BackgroundImage
+ {
+ get { return _backgroundImage; }
+ set { _backgroundImage = value; }
+ }
+
+ public int Interval
+ {
+ get { return _interval; }
+ set { _interval = value; }
+ }
+
+ public bool Localizable
+ {
+ get { return _localizable; }
+ set { _localizable = value; }
+ }
+
+ public string Name
+ {
+ get { return _name; }
+ set { _name = value; }
+ }
+
+ public string Text
+ {
+ get { return "Mono"; }
+ }
+
+ public string Title
+ {
+ get { return _title; }
+ set { _title = value; }
+ }
+
+ public string Zone
+ {
+ get { return _zone; }
+ set { _zone = value; }
+ }
+
+ public string Company
+ {
+ get { return _company; }
+ set { _company = value; }
+ }
+
+ private Image _backgroundImage;
+ private string _company;
+ private int _interval;
+ private bool _localizable;
+ private string _name;
+ private string _title;
+ private string _zone;
+ }
+}
Property changes on: trunk/gert/standalone/bug82674/MyComponent.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/MyComponent.de.resx
===================================================================
--- trunk/gert/standalone/bug82674/MyComponent.de.resx 2007-09-17 17:24:04 UTC
(rev 85910)
+++ trunk/gert/standalone/bug82674/MyComponent.de.resx 2007-09-17 17:26:23 UTC
(rev 85911)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="$this.Name">
+ <value>Component (de)</value>
+ </data>
+ <data name="$this.Zone">
+ <value>Zone (de)</value>
+ </data>
+</root>
\ No newline at end of file
Property changes on: trunk/gert/standalone/bug82674/MyComponent.de.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/MyComponent.en-GB.resx
===================================================================
--- trunk/gert/standalone/bug82674/MyComponent.en-GB.resx 2007-09-17
17:24:04 UTC (rev 85910)
+++ trunk/gert/standalone/bug82674/MyComponent.en-GB.resx 2007-09-17
17:26:23 UTC (rev 85911)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="$this.Company">
+ <value>Company (en-GB)</value>
+ </data>
+ <data name="$this.Interval" type="System.Boolean, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </data>
+ <data name="$this.Localizable" type="System.Boolean, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </data>
+ <data name="$this.name">
+ <value>Component (en-GB)</value>
+ </data>
+ <data name="$this.Text">
+ <value>Text (en-GB)</value>
+ </data>
+ <data name="$this.Zone">
+ <value>Zone (en-GB)</value>
+ </data>
+</root>
\ No newline at end of file
Property changes on: trunk/gert/standalone/bug82674/MyComponent.en-GB.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/MyComponent.fr-FR.resx
===================================================================
--- trunk/gert/standalone/bug82674/MyComponent.fr-FR.resx 2007-09-17
17:24:04 UTC (rev 85910)
+++ trunk/gert/standalone/bug82674/MyComponent.fr-FR.resx 2007-09-17
17:26:23 UTC (rev 85911)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="$this.Company" type="System.EventArgs, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>Company (fr-FR)</value>
+ </data>
+ <data name="$this.name">
+ <value>Component (fr-FR)</value>
+ </data>
+ <data name="French-OK">
+ <value>Zone (fr-FR)</value>
+ </data>
+</root>
\ No newline at end of file
Property changes on: trunk/gert/standalone/bug82674/MyComponent.fr-FR.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/MyComponent.fr.resx
===================================================================
--- trunk/gert/standalone/bug82674/MyComponent.fr.resx 2007-09-17 17:24:04 UTC
(rev 85910)
+++ trunk/gert/standalone/bug82674/MyComponent.fr.resx 2007-09-17 17:26:23 UTC
(rev 85911)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="$this.Name">
+ <value>Component (fr)</value>
+ </data>
+ <data name="$this.Zone">
+ <value>Zone (fr)</value>
+ </data>
+</root>
\ No newline at end of file
Property changes on: trunk/gert/standalone/bug82674/MyComponent.fr.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/MyComponent.nl-BE.resx
===================================================================
--- trunk/gert/standalone/bug82674/MyComponent.nl-BE.resx 2007-09-17
17:24:04 UTC (rev 85910)
+++ trunk/gert/standalone/bug82674/MyComponent.nl-BE.resx 2007-09-17
17:26:23 UTC (rev 85911)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="$this.Company" type="System.EventArgs, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>Company (NL-BE)</value>
+ </data>
+ <data name="$this.name">
+ <value>Component (NL-BE)</value>
+ </data>
+ <data name="$this.Text">
+ <value>Form1 (NL-BE)</value>
+ </data>
+ <data name="$this.Zone">
+ <value>Zone (NL-BE)</value>
+ </data>
+</root>
\ No newline at end of file
Property changes on: trunk/gert/standalone/bug82674/MyComponent.nl-BE.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/MyComponent.nl-NL.resx
===================================================================
--- trunk/gert/standalone/bug82674/MyComponent.nl-NL.resx 2007-09-17
17:24:04 UTC (rev 85910)
+++ trunk/gert/standalone/bug82674/MyComponent.nl-NL.resx 2007-09-17
17:26:23 UTC (rev 85911)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="$this.Company" type="System.EventArgs, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>Company (NL-NL)</value>
+ </data>
+ <data name="$this.name">
+ <value>Component (NL-NL)</value>
+ </data>
+ <data name="$this.Text">
+ <value>Form1 (NL-NL)</value>
+ </data>
+ <data name="$this.Zone">
+ <value>Zone (NL-NL)</value>
+ </data>
+</root>
\ No newline at end of file
Property changes on: trunk/gert/standalone/bug82674/MyComponent.nl-NL.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/MyComponent.resx
===================================================================
--- trunk/gert/standalone/bug82674/MyComponent.resx 2007-09-17 17:24:04 UTC
(rev 85910)
+++ trunk/gert/standalone/bug82674/MyComponent.resx 2007-09-17 17:26:23 UTC
(rev 85911)
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="$this.BackgroundImage" type="System.Drawing.Bitmap,
System.Drawing, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+
Qk12BQAAAAAAADYEAAAoAAAAEgAAABAAAAABAAgAAAAAAAAAAAAgHAAAIBwAAAABAAAAAQAAAAAA/wAA
+
M/8AAGb/AACZ/wAAzP8AAP//ADMA/wAzM/8AM2b/ADOZ/wAzzP8AM///AGYA/wBmM/8AZmb/AGaZ/wBm
+
zP8AZv//AJkA/wCZM/8AmWb/AJmZ/wCZzP8Amf//AMwA/wDMM/8AzGb/AMyZ/wDMzP8AzP//AP8A/wD/
+
M/8A/2b/AP+Z/wD/zP8A////MwAA/zMAM/8zAGb/MwCZ/zMAzP8zAP//MzMA/zMzM/8zM2b/MzOZ/zMz
+
zP8zM///M2YA/zNmM/8zZmb/M2aZ/zNmzP8zZv//M5kA/zOZM/8zmWb/M5mZ/zOZzP8zmf//M8wA/zPM
+
M/8zzGb/M8yZ/zPMzP8zzP//M/8A/zP/M/8z/2b/M/+Z/zP/zP8z////ZgAA/2YAM/9mAGb/ZgCZ/2YA
+
zP9mAP//ZjMA/2YzM/9mM2b/ZjOZ/2YzzP9mM///ZmYA/2ZmM/9mZmb/ZmaZ/2ZmzP9mZv//ZpkA/2aZ
+
M/9mmWb/ZpmZ/2aZzP9mmf//ZswA/2bMM/9mzGb/ZsyZ/2bMzP9mzP//Zv8A/2b/M/9m/2b/Zv+Z/2b/
+
zP9m////mQAA/5kAM/+ZAGb/mQCZ/5kAzP+ZAP//mTMA/5kzM/+ZM2b/mTOZ/5kzzP+ZM///mWYA/5lm
+
M/+ZZmb/mWaZ/5lmzP+ZZv//mZkA/5mZM/+ZmWb/mZmZ/5mZzP+Zmf//mcwA/5nMM/+ZzGb/mcyZ/5nM
+
zP+ZzP//mf8A/5n/M/+Z/2b/mf+Z/5n/zP+Z////zAAA/8wAM//MAGb/zACZ/8wAzP/MAP//zDMA/8wz
+
M//MM2b/zDOZ/8wzzP/MM///zGYA/8xmM//MZmb/zGaZ/8xmzP/MZv//zJkA/8yZM//MmWb/zJmZ/8yZ
+
zP/Mmf//zMwA/8zMM//MzGb/zMyZ/8zMzP/MzP//zP8A/8z/M//M/2b/zP+Z/8z/zP/M/////wAA//8A
+
M///AGb//wCZ//8AzP//AP///zMA//8zM///M2b//zOZ//8zzP//M////2YA//9mM///Zmb//2aZ//9m
+
zP//Zv///5kA//+ZM///mWb//5mZ//+ZzP//mf///8wA///MM///zGb//8yZ///MzP//zP////8A////
+
M////2b///+Z////zP//////AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
+
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
+
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
+
AAAAAAAAAAwMDAwAAAAAAAAAAAAAAAAAAAAAAAwMDAwAAAAAAAAAAAAAAAAAAAAAAAwMDAAAAAAAAAAA
+
AAAAAAAAAAAAAAwMDAAAAAAAAAAAAAAAAAAAAAAADAwMAAAAAAAAAAAADAAAAAAAAAAMDA0AAAAAAAAA
+
AAwMDQAAABMTExMTExMTNwAAAAAMDAwMDQAAABMTExMTExMAAAAANzc3Nzc3NwAAAD4+Pj4+AAAAAD4+
+
Pj4+Pj4+PgAAAGJiYgAAAAAAAAAAYmJiAAAAAAAAAGIAAAAAAAAAAABiYmIAAAAAAAAAAAAAAAAAAAAA
+
AGJiYgAAAAAAAAAAAAAAAAAAAAAAAGJiYgAAAAAAAAAAAAAAAAAAAAAAAGJiYgAAAAAAAAAAAAAAAAAA
+ AAAAAGJiYgAAAAAAAAAAAAAA
+ </value>
+ </data>
+ <data name="$this.Company">
+ <value>OSF</value>
+ </data>
+ <data name="$this.Interval" type="System.Boolean, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </data>
+ <data name="$this.Localizable" type="System.Boolean, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </data>
+ <data name="$this.name">
+ <value>Mono Component</value>
+ </data>
+ <data name="$this.Text">
+ <value>Form1</value>
+ </data>
+ <data name="$this.Zone" type="System.EventArgs, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+</root>
\ No newline at end of file
Property changes on: trunk/gert/standalone/bug82674/MyComponent.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/OurComponent.nl-BE.resx
===================================================================
--- trunk/gert/standalone/bug82674/OurComponent.nl-BE.resx 2007-09-17
17:24:04 UTC (rev 85910)
+++ trunk/gert/standalone/bug82674/OurComponent.nl-BE.resx 2007-09-17
17:26:23 UTC (rev 85911)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="$this.Company" type="System.EventArgs, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>Company (nl-BE)</value>
+ </data>
+ <data name="$this.name">
+ <value>Component (nl-BE)</value>
+ </data>
+ <data name="$this.Text">
+ <value>Form1 (nl-BE)</value>
+ </data>
+ <data name="$this.Zone">
+ <value>Zone (nl-BE)</value>
+ </data>
+</root>
\ No newline at end of file
Property changes on: trunk/gert/standalone/bug82674/OurComponent.nl-BE.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/OurComponent.resx
===================================================================
--- trunk/gert/standalone/bug82674/OurComponent.resx 2007-09-17 17:24:04 UTC
(rev 85910)
+++ trunk/gert/standalone/bug82674/OurComponent.resx 2007-09-17 17:26:23 UTC
(rev 85911)
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="$this.BackgroundImage" type="System.Drawing.Bitmap,
System.Drawing, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+
Qk12BQAAAAAAADYEAAAoAAAAEgAAABAAAAABAAgAAAAAAAAAAAAgHAAAIBwAAAABAAAAAQAAAAAA/wAA
+
M/8AAGb/AACZ/wAAzP8AAP//ADMA/wAzM/8AM2b/ADOZ/wAzzP8AM///AGYA/wBmM/8AZmb/AGaZ/wBm
+
zP8AZv//AJkA/wCZM/8AmWb/AJmZ/wCZzP8Amf//AMwA/wDMM/8AzGb/AMyZ/wDMzP8AzP//AP8A/wD/
+
M/8A/2b/AP+Z/wD/zP8A////MwAA/zMAM/8zAGb/MwCZ/zMAzP8zAP//MzMA/zMzM/8zM2b/MzOZ/zMz
+
zP8zM///M2YA/zNmM/8zZmb/M2aZ/zNmzP8zZv//M5kA/zOZM/8zmWb/M5mZ/zOZzP8zmf//M8wA/zPM
+
M/8zzGb/M8yZ/zPMzP8zzP//M/8A/zP/M/8z/2b/M/+Z/zP/zP8z////ZgAA/2YAM/9mAGb/ZgCZ/2YA
+
zP9mAP//ZjMA/2YzM/9mM2b/ZjOZ/2YzzP9mM///ZmYA/2ZmM/9mZmb/ZmaZ/2ZmzP9mZv//ZpkA/2aZ
+
M/9mmWb/ZpmZ/2aZzP9mmf//ZswA/2bMM/9mzGb/ZsyZ/2bMzP9mzP//Zv8A/2b/M/9m/2b/Zv+Z/2b/
+
zP9m////mQAA/5kAM/+ZAGb/mQCZ/5kAzP+ZAP//mTMA/5kzM/+ZM2b/mTOZ/5kzzP+ZM///mWYA/5lm
+
M/+ZZmb/mWaZ/5lmzP+ZZv//mZkA/5mZM/+ZmWb/mZmZ/5mZzP+Zmf//mcwA/5nMM/+ZzGb/mcyZ/5nM
+
zP+ZzP//mf8A/5n/M/+Z/2b/mf+Z/5n/zP+Z////zAAA/8wAM//MAGb/zACZ/8wAzP/MAP//zDMA/8wz
+
M//MM2b/zDOZ/8wzzP/MM///zGYA/8xmM//MZmb/zGaZ/8xmzP/MZv//zJkA/8yZM//MmWb/zJmZ/8yZ
+
zP/Mmf//zMwA/8zMM//MzGb/zMyZ/8zMzP/MzP//zP8A/8z/M//M/2b/zP+Z/8z/zP/M/////wAA//8A
+
M///AGb//wCZ//8AzP//AP///zMA//8zM///M2b//zOZ//8zzP//M////2YA//9mM///Zmb//2aZ//9m
+
zP//Zv///5kA//+ZM///mWb//5mZ//+ZzP//mf///8wA///MM///zGb//8yZ///MzP//zP////8A////
+
M////2b///+Z////zP//////AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
+
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
+
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
+
AAAAAAAAAAwMDAwAAAAAAAAAAAAAAAAAAAAAAAwMDAwAAAAAAAAAAAAAAAAAAAAAAAwMDAAAAAAAAAAA
+
AAAAAAAAAAAAAAwMDAAAAAAAAAAAAAAAAAAAAAAADAwMAAAAAAAAAAAADAAAAAAAAAAMDA0AAAAAAAAA
+
AAwMDQAAABMTExMTExMTNwAAAAAMDAwMDQAAABMTExMTExMAAAAANzc3Nzc3NwAAAD4+Pj4+AAAAAD4+
+
Pj4+Pj4+PgAAAGJiYgAAAAAAAAAAYmJiAAAAAAAAAGIAAAAAAAAAAABiYmIAAAAAAAAAAAAAAAAAAAAA
+
AGJiYgAAAAAAAAAAAAAAAAAAAAAAAGJiYgAAAAAAAAAAAAAAAAAAAAAAAGJiYgAAAAAAAAAAAAAAAAAA
+ AAAAAGJiYgAAAAAAAAAAAAAA
+ </value>
+ </data>
+ <data name="$this.Company">
+ <value>OSF</value>
+ </data>
+ <data name="$this.Interval" type="System.Boolean, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </data>
+ <data name="$this.Localizable" type="System.Boolean, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </data>
+ <data name="$this.name">
+ <value>Mono Component</value>
+ </data>
+ <data name="$this.Text">
+ <value>Form1</value>
+ </data>
+ <data name="$this.Zone" type="System.EventArgs, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+</root>
\ No newline at end of file
Property changes on: trunk/gert/standalone/bug82674/OurComponent.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/default.build
===================================================================
--- trunk/gert/standalone/bug82674/default.build 2007-09-17 17:24:04 UTC
(rev 85910)
+++ trunk/gert/standalone/bug82674/default.build 2007-09-17 17:26:23 UTC
(rev 85911)
@@ -0,0 +1,245 @@
+<project name="bug82674" default="rebuild">
+ <target name="mono-1.0">
+ <property name="csc.defines"
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+ </target>
+
+ <target name="mono-2.0">
+ <property name="csc.defines"
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+ </target>
+
+ <target name="net-1.1">
+ <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+ </target>
+
+ <target name="net-2.0">
+ <property name="csc.defines"
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+ </target>
+
+ <property name="frameworks" value="mono-1.0,mono-2.0,net-1.1,net-2.0" />
+
+ <target name="clean">
+ <delete>
+ <fileset>
+ <include name="de/**" />
+ <include name="en-GB/**" />
+ <include name="fr/**" />
+ <include name="fr-FR/**" />
+ <include name="nl-BE/**" />
+ <include name="nl-NL/**" />
+ <include name="MyComponent.resources" />
+ <include name="MyComponent.ja-JP.resources" />
+ <include name="MyComponent.nl-BE.resources" />
+ <include
name="Mono.Tests.MyComponent.resources" />
+ <include
name="Mono.Tests.MyComponent.fr-FR.resources" />
+ <include
name="Mono.Tests.MyComponent.ja-JP.resources" />
+ <include
name="Mono.Tests.MyComponent.nl-BE.resources" />
+ <include name="out" />
+ <include name="test1.exe" />
+ <include name="test1.resources.dll" />
+ <include name="test2.exe" />
+ <include name="test2.resources.dll" />
+ <include name="test3.exe" />
+ <include name="test4.exe" />
+ <include
name="test4-Mono.Tests.MyComponent.fr-FR.resources" />
+ <include name="test5.exe" />
+ <include name="test6.exe" />
+ <include
name="test6-MyComponent.ja-JP.resources" />
+ <include
name="test6-MyComponent.nl-BE.resources" />
+ <include
name="test6-Mono.Tests.MyComponent.ja-JP.resources" />
+ <include
name="test6-Mono.Tests.MyComponent.nl-BE.resources" />
+ </fileset>
+ </delete>
+ </target>
+
+ <target name="build">
+ <property name="original.targetframework"
value="${nant.settings.currentframework}" />
+
+ <foreach property="framework" item="String" in="${frameworks}"
delim=",">
+ <if test="${framework::exists(framework)}">
+ <property name="nant.settings.currentframework"
value="${framework}" />
+ <call
target="${nant.settings.currentframework}" />
+ <call target="run" />
+ <call target="clean" />
+ </if>
+ </foreach>
+
+ <property name="nant.settings.currentframework"
value="${original.targetframework}" />
+ </target>
+
+ <target name="compile-test1">
+ <csc target="exe" define="${csc.defines}" output="test1.exe"
warnaserror="true" warninglevel="4">
+ <sources>
+ <include name="Assert.cs" />
+ <include name="MyComponent.cs" />
+ <include name="test1.cs" />
+ </sources>
+ <references>
+ <include name="System.Drawing.dll" />
+ <include name="System.Windows.Forms.dll" />
+ </references>
+ <resources dynamicprefix="true">
+ <include name="*.resx" />
+ </resources>
+ </csc>
+ <resgen input="MyComponent.fr.resx"
output="MyComponent.resources" />
+ <resgen input="MyComponent.fr.resx"
output="Mono.Tests.MyComponent.resources" />
+ <al target="lib" output="test1.resources.dll"
template="test1.exe">
+ <sources>
+ <include name="MyComponent.resources" />
+ </sources>
+ </al>
+ </target>
+
+ <target name="compile-test2">
+ <csc target="exe" define="${csc.defines}" output="test2.exe"
warnaserror="true" warninglevel="4">
+ <sources>
+ <include name="Assert.cs" />
+ <include name="MyComponent.cs" />
+ <include name="test2.cs" />
+ </sources>
+ <references>
+ <include name="System.Drawing.dll" />
+ <include name="System.Windows.Forms.dll" />
+ </references>
+ </csc>
+ <resgen input="MyComponent.fr.resx"
output="MyComponent.resources" />
+ <resgen input="MyComponent.de.resx"
output="Mono.Tests.MyComponent.resources" />
+ <al target="lib" output="test2.resources.dll"
template="test2.exe">
+ <sources>
+ <include name="MyComponent.resources" />
+ <include
name="Mono.Tests.MyComponent.resources" />
+ </sources>
+ </al>
+ </target>
+
+ <target name="compile-test3">
+ <resgen input="MyComponent.nl-NL.resx"
output="MyComponent.nl-BE.resources" />
+ <resgen input="MyComponent.nl-NL.resx"
output="Mono.Tests.MyComponent.nl-BE.resources" />
+ <csc target="exe" define="${csc.defines}" output="test3.exe"
warnaserror="true" warninglevel="4">
+ <sources>
+ <include name="Assert.cs" />
+ <include name="MyComponent.cs" />
+ <include name="test3.cs" />
+ </sources>
+ <references>
+ <include name="System.Drawing.dll" />
+ <include name="System.Windows.Forms.dll" />
+ </references>
+ <resources>
+ <include name="*.resx" />
+ </resources>
+ </csc>
+ </target>
+
+ <target name="compile-test4">
+ <resgen input="MyComponent.nl-BE.resx"
output="test4-Mono.Tests.MyComponent.fr-FR.resources" />
+ <csc target="exe" define="${csc.defines}" output="test4.exe"
warnaserror="true" warninglevel="4">
+ <sources>
+ <include name="Assert.cs" />
+ <include name="MyComponent.cs" />
+ <include name="test4.cs" />
+ </sources>
+ <references>
+ <include name="System.Drawing.dll" />
+ <include name="System.Windows.Forms.dll" />
+ </references>
+ <resources>
+ <include name="*.resx" />
+ </resources>
+ <arg
value="/resource:${path::get-full-path('test4-Mono.Tests.MyComponent.fr-FR.resources')},Mono.Tests.MyComponent.fr-FR.resources"
/>
+ </csc>
+ </target>
+
+ <target name="compile-test5">
+ <resgen input="MyComponent.nl-NL.resx"
output="MyComponent.nl-BE.resources" />
+ <resgen input="MyComponent.nl-NL.resx"
output="Mono.Tests.MyComponent.nl-BE.resources" />
+ <csc target="exe" define="${csc.defines}" output="test5.exe"
warnaserror="true" warninglevel="4">
+ <sources>
+ <include name="Assert.cs" />
+ <include name="MyComponent.cs" />
+ <include name="test3.cs" />
+ </sources>
+ <references>
+ <include name="System.Drawing.dll" />
+ <include name="System.Windows.Forms.dll" />
+ </references>
+ <resources>
+ <include name="*.resx" />
+ </resources>
+ </csc>
+ <resgen input="MyComponent.fr.resx"
output="MyComponent.resources" />
+ <resgen input="MyComponent.de.resx"
output="Mono.Tests.MyComponent.resources" />
+ </target>
+
+ <target name="compile-test6">
+ <resgen input="MyComponent.fr-FR.resx"
output="test6-MyComponent.nl-BE.resources" />
+ <resgen input="MyComponent.nl-NL.resx"
output="test6-Mono.Tests.MyComponent.nl-BE.resources" />
+ <resgen input="MyComponent.fr-FR.resx"
output="test6-MyComponent.ja-JP.resources" />
+ <resgen input="MyComponent.nl-NL.resx"
output="test6-Mono.Tests.MyComponent.ja-JP.resources" />
+ <csc target="exe" define="${csc.defines}" output="test6.exe"
warnaserror="true" warninglevel="4">
+ <sources>
+ <include name="Assert.cs" />
+ <include name="MyComponent.cs" />
+ <include name="test6.cs" />
+ </sources>
+ <references>
+ <include name="System.Drawing.dll" />
+ <include name="System.Windows.Forms.dll" />
+ </references>
+ <resources>
+ <include name="*.resx" />
+ </resources>
+ <arg
value="/resource:${path::get-full-path('test6-MyComponent.nl-BE.resources')},MyComponent.nl-BE.resources"
/>
+ <arg
value="/resource:${path::get-full-path('test6-Mono.Tests.MyComponent.nl-BE.resources')},Mono.Tests.MyComponent.nl-BE.resources"
/>
+ <arg
value="/resource:${path::get-full-path('test6-MyComponent.ja-JP.resources')},MyComponent.ja-JP.resources"
/>
+ <arg
value="/resource:${path::get-full-path('test6-Mono.Tests.MyComponent.ja-JP.resources')},Mono.Tests.MyComponent.ja-JP.resources"
/>
+ </csc>
+ </target>
+
+ <target name="run-test1" depends="compile-test1">
+ <exec program="test1.exe" managed="true" output="out" />
+ <fail if="${file::exists('out')}" />
+ </target>
+
+ <target name="run-test2" depends="compile-test2">
+ <exec program="test2.exe" managed="true" output="out" />
+ <fail if="${file::exists('out')}" />
+ </target>
+
+ <target name="run-test3" depends="compile-test3">
+ <exec program="test3.exe" managed="true" output="out" />
+ <fail if="${file::exists('out')}" />
+ </target>
+
+ <target name="run-test4" depends="compile-test4">
+ <exec program="test4.exe" managed="true" output="out" />
+ <fail if="${file::exists('out')}" />
+ </target>
+
+ <target name="run-test5" depends="compile-test5">
+ <exec program="test5.exe" managed="true" output="out" />
+ <fail if="${file::exists('out')}" />
+ </target>
+
+ <target name="run-test6" depends="compile-test6">
+ <exec program="test6.exe" managed="true" output="out" />
+ <fail if="${file::exists('out')}" />
+ </target>
+
+ <target name="run">
+ <call target="clean" />
+ <call target="run-test1" />
+ <call target="clean" />
+ <call target="run-test2" />
+ <call target="clean" />
+ <call target="run-test3" />
+ <call target="clean" />
+ <call target="run-test4" />
+ <call target="clean" />
+ <call target="run-test5" />
+ <call target="clean" />
+ <call target="run-test6" />
+ </target>
+
+ <target name="rebuild" depends="clean, build" />
+</project>
Property changes on: trunk/gert/standalone/bug82674/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/test1.cs
===================================================================
--- trunk/gert/standalone/bug82674/test1.cs 2007-09-17 17:24:04 UTC (rev
85910)
+++ trunk/gert/standalone/bug82674/test1.cs 2007-09-17 17:26:23 UTC (rev
85911)
@@ -0,0 +1,166 @@
+using System;
+using System.ComponentModel;
+using System.Drawing;
+using System.Globalization;
+using System.Resources;
+using System.Threading;
+
+using Mono.Tests;
+
+[assembly: NeutralResourcesLanguageAttribute ("nl-NL")]
+
+class Program
+{
+ static void Main ()
+ {
+ ComponentResourceManager crm = new ComponentResourceManager (
+ typeof (MyComponent));
+
+ Thread.CurrentThread.CurrentUICulture = new CultureInfo
("en-GB");
+ Thread.CurrentThread.CurrentCulture = new CultureInfo ("nl-BE");
+
+ MyComponent comp = new MyComponent ("Welcome", "System");
+ crm.ApplyResources (comp, "$this",
CultureInfo.InvariantCulture);
+
+ Assert.IsNotNull (comp.BackgroundImage, "#A1");
+ Assert.IsNotNull (comp.Company, "#A2");
+ Assert.AreEqual ("OSF", comp.Company, "#A3");
+ Assert.AreEqual (0, comp.Interval, "#A4");
+ Assert.IsTrue (comp.Localizable, "#A5");
+ Assert.IsNull (comp.Name, "#A6");
+ Assert.IsNotNull (comp.Text, "#A7");
+ Assert.AreEqual ("Mono", comp.Text, "#A8");
+ Assert.IsNotNull (comp.Title, "#A9");
+ Assert.AreEqual ("Welcome", comp.Title, "#A10");
+#if NET_2_0
+ Assert.IsNull (comp.Zone, "#A11");
+#else
+ Assert.IsNotNull (comp.Zone, "#A11");
+ Assert.AreEqual (string.Empty, comp.Zone, "#A12");
+#endif
+
+ comp = new MyComponent ("Welcome", "System");
+ crm.IgnoreCase = true;
+ crm.ApplyResources (comp, "$this",
CultureInfo.InvariantCulture);
+
+ Assert.IsNotNull (comp.BackgroundImage, "#B1");
+ Assert.IsNotNull (comp.Company, "#B2");
+ Assert.AreEqual ("OSF", comp.Company, "#B3");
+ Assert.AreEqual (0, comp.Interval, "#B4");
+ Assert.IsTrue (comp.Localizable, "#B5");
+ Assert.IsNotNull (comp.Name, "#B6");
+ Assert.AreEqual ("Mono Component", comp.Name, "#B7");
+ Assert.IsNotNull (comp.Text, "#B8");
+ Assert.AreEqual ("Mono", comp.Text, "#B9");
+ Assert.IsNotNull (comp.Title, "#B10");
+ Assert.AreEqual ("Welcome", comp.Title, "#B11");
+#if NET_2_0
+ Assert.IsNull (comp.Zone, "#B12");
+#else
+ Assert.IsNotNull (comp.Zone, "#B12");
+ Assert.AreEqual (string.Empty, comp.Zone, "#B13");
+#endif
+
+ comp = new MyComponent ("Welcome", "System");
+ crm.ApplyResources (comp, string.Empty,
CultureInfo.InvariantCulture);
+ Assert.IsNull (comp.Name, "#C");
+
+ comp = new MyComponent ("Welcome", "System");
+ crm.IgnoreCase = false;
+ crm.ApplyResources (comp, "$this", new CultureInfo ("nl-BE"));
+
+ Assert.IsNotNull (comp.BackgroundImage, "#D1");
+#if NET_2_0
+ Assert.IsNull (comp.Company, "#D2");
+#else
+ Assert.IsNotNull (comp.Company, "#D2");
+ Assert.AreEqual ("Company (NL-BE)", comp.Company, "#D3");
+#endif
+ Assert.AreEqual (0, comp.Interval, "#D4");
+ Assert.IsTrue (comp.Localizable, "#D5");
+ Assert.IsNull (comp.Name, "#D6");
+ Assert.IsNotNull (comp.Text, "#D7");
+ Assert.AreEqual ("Mono", comp.Text, "#D8");
+ Assert.IsNotNull (comp.Title, "#D9");
+ Assert.AreEqual ("Welcome", comp.Title, "#D10");
+ Assert.IsNotNull (comp.Zone, "#D11");
+ Assert.AreEqual ("Zone (NL-BE)", comp.Zone, "#D12");
+
+ comp = new MyComponent ("Welcome", "System");
+ crm.IgnoreCase = false;
+ crm.ApplyResources (comp, "$this", new CultureInfo ("nl-NL"));
+
+ Assert.IsNotNull (comp.BackgroundImage, "#E1");
+ Assert.IsNotNull (comp.Company, "#E2");
+ Assert.AreEqual ("OSF", comp.Company, "#E3");
+ Assert.AreEqual (0, comp.Interval, "#E4");
+ Assert.IsTrue (comp.Localizable, "#E5");
+ Assert.IsNull (comp.Name, "#E6");
+ Assert.IsNotNull (comp.Text, "#E7");
+ Assert.AreEqual ("Mono", comp.Text, "#E8");
+ Assert.IsNotNull (comp.Title, "#E9");
+ Assert.AreEqual ("Welcome", comp.Title, "#E10");
+#if NET_2_0
+ Assert.IsNull (comp.Zone, "#E11");
+#else
+ Assert.IsNotNull (comp.Zone, "#E11");
+ Assert.AreEqual (string.Empty, comp.Zone, "#E12");
+#endif
+
+ comp = new MyComponent ("Welcome", "System");
+ crm.IgnoreCase = true;
+ crm.ApplyResources (comp, "$this", new CultureInfo ("fr-FR"));
+
+ Assert.IsNotNull (comp.BackgroundImage, "#F1");
+#if NET_2_0
+ Assert.IsNull (comp.Company, "#F2");
+#else
+ Assert.IsNotNull (comp.Company, "#F2");
+ Assert.AreEqual ("Company (fr-FR)", comp.Company, "#F3");
+#endif
+ Assert.AreEqual (0, comp.Interval, "#F4");
+ Assert.IsTrue (comp.Localizable, "#F5");
+ Assert.IsNotNull (comp.Name, "#F6");
+ Assert.AreEqual ("Component (fr-FR)", comp.Name, "#F7");
+ Assert.IsNotNull (comp.Text, "#F8");
+ Assert.AreEqual ("Mono", comp.Text, "#F9");
+ Assert.IsNotNull (comp.Title, "#F10");
+ Assert.AreEqual ("Welcome", comp.Title, "#F11");
+ Assert.IsNotNull (comp.Zone, "#F12");
+ Assert.AreEqual ("Zone (fr)", comp.Zone, "#F13");
+
+ comp = new MyComponent ("Welcome", "System");
+ crm.ApplyResources (comp, "$this", null);
+
+ Assert.IsNotNull (comp.BackgroundImage, "#G1");
+ Assert.IsNotNull (comp.Company, "#G2");
+ Assert.AreEqual ("Company (en-GB)", comp.Company, "#G3");
+ Assert.AreEqual (0, comp.Interval, "#G4");
+ Assert.IsTrue (comp.Localizable, "#G5");
+ Assert.IsNotNull (comp.Name, "#G6");
+ Assert.AreEqual ("Component (en-GB)", comp.Name, "#G7");
+ Assert.IsNotNull (comp.Text, "#G8");
+ Assert.AreEqual ("Mono", comp.Text, "#G9");
+ Assert.IsNotNull (comp.Title, "#G10");
+ Assert.AreEqual ("Welcome", comp.Title, "#G11");
+ Assert.IsNotNull (comp.Zone, "#G12");
+ Assert.AreEqual ("Zone (en-GB)", comp.Zone, "#G13");
+
+ comp = new MyComponent ("Welcome", "System");
+ crm.ApplyResources (comp, "$this");
+
+ Assert.IsNotNull (comp.BackgroundImage, "#H1");
+ Assert.IsNotNull (comp.Company, "#H2");
+ Assert.AreEqual ("Company (en-GB)", comp.Company, "#H3");
+ Assert.AreEqual (0, comp.Interval, "#H4");
+ Assert.IsTrue (comp.Localizable, "#H5");
+ Assert.IsNotNull (comp.Name, "#H6");
+ Assert.AreEqual ("Component (en-GB)", comp.Name, "#H7");
+ Assert.IsNotNull (comp.Text, "#H8");
+ Assert.AreEqual ("Mono", comp.Text, "#H9");
+ Assert.IsNotNull (comp.Title, "#H10");
+ Assert.AreEqual ("Welcome", comp.Title, "#H11");
+ Assert.IsNotNull (comp.Zone, "#H12");
+ Assert.AreEqual ("Zone (en-GB)", comp.Zone, "#H13");
+ }
+}
Property changes on: trunk/gert/standalone/bug82674/test1.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/test2.cs
===================================================================
--- trunk/gert/standalone/bug82674/test2.cs 2007-09-17 17:24:04 UTC (rev
85910)
+++ trunk/gert/standalone/bug82674/test2.cs 2007-09-17 17:26:23 UTC (rev
85911)
@@ -0,0 +1,65 @@
+using System;
+using System.ComponentModel;
+using System.Drawing;
+using System.Globalization;
+using System.Resources;
+
+using Mono.Tests;
+
+[assembly: NeutralResourcesLanguageAttribute ("nl-NL")]
+
+class Program
+{
+ static void Main ()
+ {
+ ComponentResourceManager crm = new ComponentResourceManager (
+ typeof (MyComponent));
+
+ MyComponent comp = new MyComponent ("Welcome", "System");
+
+ try {
+ crm.ApplyResources (comp, "$this",
CultureInfo.InvariantCulture);
+ Assert.Fail ("#A1");
+ } catch (MissingManifestResourceException ex) {
+ // Could not find any resources appropriate for the
+ // specified culture or the neutral culture. Make sure
+ // "Mono.Tests.MyComponent.resources" was correctly
+ // embedded or linked into assembly "test2" at compile
+ // time, or that all the satellite assemblies required
+ // are loadable and fully signed
+ Assert.AreEqual (typeof
(MissingManifestResourceException), ex.GetType (), "#A2");
+ Assert.IsNull (ex.InnerException, "#A3");
+ Assert.IsNotNull (ex.Message, "#A4");
+#if NET_2_0
+ Assert.IsTrue (ex.Message.IndexOf
("\"Mono.Tests.MyComponent.resources\"") != -1, "#A5");
+#else
+ Assert.IsTrue (ex.Message.IndexOf
("MyComponent.resources") != -1, "#A5");
+#endif
+ Assert.IsTrue (ex.Message.IndexOf ("\"test2\"") != -1,
"#A6");
+ }
+
+ comp = new MyComponent ("Welcome", "System");
+ crm.IgnoreCase = false;
+
+ try {
+ crm.ApplyResources (comp, "$this", new CultureInfo
("nl-BE"));
+ Assert.Fail ("#B1");
+ } catch (MissingManifestResourceException ex) {
+ // Could not find any resources appropriate for the
+ // specified culture or the neutral culture. Make sure
+ // "Mono.Tests.MyComponent.resources" was correctly
+ // embedded or linked into assembly "test2" at compile
+ // time, or that all the satellite assemblies required
+ // are loadable and fully signed
+ Assert.AreEqual (typeof
(MissingManifestResourceException), ex.GetType (), "#B2");
+ Assert.IsNull (ex.InnerException, "#B3");
+ Assert.IsNotNull (ex.Message, "#B4");
+#if NET_2_0
+ Assert.IsTrue (ex.Message.IndexOf
("\"Mono.Tests.MyComponent.resources\"") != -1, "#B5");
+#else
+ Assert.IsTrue (ex.Message.IndexOf
("MyComponent.resources") != -1, "#B5");
+#endif
+ Assert.IsTrue (ex.Message.IndexOf ("\"test2\"") != -1,
"#B6");
+ }
+ }
+}
Property changes on: trunk/gert/standalone/bug82674/test2.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/test3.cs
===================================================================
--- trunk/gert/standalone/bug82674/test3.cs 2007-09-17 17:24:04 UTC (rev
85910)
+++ trunk/gert/standalone/bug82674/test3.cs 2007-09-17 17:26:23 UTC (rev
85911)
@@ -0,0 +1,115 @@
+using System;
+using System.ComponentModel;
+using System.Drawing;
+using System.Globalization;
+using System.Reflection;
+using System.Resources;
+
+using Mono.Tests;
+
+class Program
+{
+ static void Main ()
+ {
+ ComponentResourceManager crm = new ComponentResourceManager (
+ typeof (MyComponent));
+
+ MyComponent comp = new MyComponent ("Welcome", "System");
+ crm.IgnoreCase = true;
+ crm.ApplyResources (comp, "$this", new CultureInfo ("nl-BE"));
+
+ Assert.IsNotNull (comp.BackgroundImage, "#A1");
+#if NET_2_0
+ Assert.IsNull (comp.Company, "#A2");
+#else
+ Assert.IsNotNull (comp.Company, "#A2");
+ Assert.AreEqual ("Company (NL-NL)", comp.Company, "#A3");
+#endif
+ Assert.AreEqual (0, comp.Interval, "#A4");
+ Assert.IsTrue (comp.Localizable, "#A5");
+ Assert.IsNotNull (comp.Name, "#A6");
+ Assert.AreEqual ("Component (NL-NL)", comp.Name, "#A7");
+ Assert.IsNotNull (comp.Text, "#A8");
+ Assert.AreEqual ("Mono", comp.Text, "#A9");
+ Assert.IsNotNull (comp.Title, "#A10");
+ Assert.AreEqual ("Welcome", comp.Title, "#A11");
+ Assert.IsNotNull (comp.Zone, "#A12");
+ Assert.AreEqual ("Zone (NL-NL)", comp.Zone, "#A13");
+
+ comp = new OURComponent ("Welcome", "System");
+ crm = new ComponentResourceManager (typeof (OURComponent));
+ crm.ApplyResources (comp, "$this", new CultureInfo ("nl-BE"));
+
+ Assert.IsNotNull (comp.BackgroundImage, "#B1");
+#if NET_2_0
+ Assert.IsNull (comp.Company, "#B2");
+#else
+ Assert.IsNotNull (comp.Company, "#B2");
+ Assert.AreEqual ("Company (nl-BE)", comp.Company, "#B3");
+#endif
+ Assert.AreEqual (0, comp.Interval, "#B4");
+ Assert.IsTrue (comp.Localizable, "#B5");
+ Assert.IsNull (comp.Name, "#B6");
+ Assert.IsNotNull (comp.Text, "#B7");
+ Assert.AreEqual ("Mono", comp.Text, "#B8");
+ Assert.IsNotNull (comp.Title, "#B9");
+ Assert.AreEqual ("Welcome", comp.Title, "#B10");
+ Assert.IsNotNull (comp.Zone, "#B11");
+ Assert.AreEqual ("Zone (nl-BE)", comp.Zone, "#B12");
+
+ comp = new OURComponent ("Welcome", "System");
+ crm = new ComponentResourceManager (typeof (OURComponent));
+ crm.ApplyResources (comp, "$this",
CultureInfo.InvariantCulture);
+
+ Assert.IsNotNull (comp.BackgroundImage, "#C1");
+ Assert.IsNotNull (comp.Company, "#C2");
+ Assert.AreEqual ("OSF", comp.Company, "#C3");
+ Assert.AreEqual (0, comp.Interval, "#C4");
+ Assert.IsTrue (comp.Localizable, "#C5");
+ Assert.IsNull (comp.Name, "#C6");
+ Assert.IsNotNull (comp.Text, "#C7");
+ Assert.AreEqual ("Mono", comp.Text, "#C8");
+ Assert.IsNotNull (comp.Title, "#C9");
+ Assert.AreEqual ("Welcome", comp.Title, "#C10");
+#if NET_2_0
+ Assert.IsNull (comp.Zone, "#C11");
+#else
+ Assert.IsNotNull (comp.Zone, "#C11");
+ Assert.AreEqual (string.Empty, comp.Zone, "#C12");
+#endif
+
+ ResourceManager rm = new ResourceManager
("MonO.TestS.MYcomPonenT",
+ Assembly.GetExecutingAssembly ());
+ Assert.IsNotNull (rm.GetString ("$this.Company", new
CultureInfo ("fr-FR")), "#D1");
+#if NET_2_0
+ Assert.AreEqual ("OSF", rm.GetString ("$this.Company", new
CultureInfo ("fr-FR")), "#D2");
+#else
+ Assert.AreEqual ("Company (fr-FR)", rm.GetString
("$this.Company", new CultureInfo ("fr-FR")), "#D2");
+#endif
+
+ rm = new ResourceManager ("MonO.TestS.MYcomPonenT",
+ Assembly.GetExecutingAssembly ());
+ Assert.IsNotNull (rm.GetString ("$this.Company",
CultureInfo.InvariantCulture), "#E1");
+ Assert.AreEqual ("OSF", rm.GetString ("$this.Company",
CultureInfo.InvariantCulture), "#E2");
+
+ rm = new ResourceManager ("OurcomPonenT",
Assembly.GetExecutingAssembly ());
+ Assert.IsNotNull (rm.GetString ("$this.Company", new
CultureInfo ("nl-BE")), "#F1");
+#if NET_2_0
+ Assert.AreEqual ("OSF", rm.GetString ("$this.Company", new
CultureInfo ("nl-BE")), "#F2");
+#else
+ Assert.AreEqual ("Company (nl-BE)", rm.GetString
("$this.Company", new CultureInfo ("nl-BE")), "#F2");
+#endif
+
+ rm = new ResourceManager ("OurcomPonenT",
Assembly.GetExecutingAssembly ());
+ Assert.IsNotNull (rm.GetString ("$this.Company",
CultureInfo.InvariantCulture), "#G1");
+ Assert.AreEqual ("OSF", rm.GetString ("$this.Company",
CultureInfo.InvariantCulture), "#G2");
+ }
+}
+
+class OURComponent : MyComponent
+{
+ public OURComponent (string title, string zone)
+ : base (title, zone)
+ {
+ }
+}
Property changes on: trunk/gert/standalone/bug82674/test3.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/test4.cs
===================================================================
--- trunk/gert/standalone/bug82674/test4.cs 2007-09-17 17:24:04 UTC (rev
85910)
+++ trunk/gert/standalone/bug82674/test4.cs 2007-09-17 17:26:23 UTC (rev
85911)
@@ -0,0 +1,43 @@
+using System;
+using System.ComponentModel;
+using System.Drawing;
+using System.Globalization;
+using System.Resources;
+using System.Threading;
+
+using Mono.Tests;
+
+[assembly: NeutralResourcesLanguageAttribute ("nl-NL")]
+
+class Program
+{
+ static void Main ()
+ {
+ ComponentResourceManager crm = new ComponentResourceManager (
+ typeof (MyComponent));
+
+ Thread.CurrentThread.CurrentUICulture = new CultureInfo
("en-GB");
+ Thread.CurrentThread.CurrentCulture = new CultureInfo ("ja-JP");
+
+ MyComponent comp = new MyComponent ("Welcome", "System");
+ crm.ApplyResources (comp, "$this", new CultureInfo ("fr-FR"));
+
+ Assert.IsNotNull (comp.BackgroundImage, "#1");
+#if NET_2_0
+ Assert.IsNull (comp.Company, "#2");
+#else
+ Assert.IsNotNull (comp.Company, "#2");
+ Assert.AreEqual ("Company (fr-FR)", comp.Company, "#3");
+#endif
+ Assert.AreEqual (0, comp.Interval, "#4");
+ Assert.IsTrue (comp.Localizable, "#5");
+ Assert.IsNotNull (comp.Name, "#6");
+ Assert.AreEqual ("Component (fr)", comp.Name, "#7");
+ Assert.IsNotNull (comp.Text, "#8");
+ Assert.AreEqual ("Mono", comp.Text, "#9");
+ Assert.IsNotNull (comp.Title, "#10");
+ Assert.AreEqual ("Welcome", comp.Title, "#11");
+ Assert.IsNotNull (comp.Zone, "#D12");
+ Assert.AreEqual ("Zone (fr)", comp.Zone, "#D13");
+ }
+}
Property changes on: trunk/gert/standalone/bug82674/test4.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82674/test6.cs
===================================================================
--- trunk/gert/standalone/bug82674/test6.cs 2007-09-17 17:24:04 UTC (rev
85910)
+++ trunk/gert/standalone/bug82674/test6.cs 2007-09-17 17:26:23 UTC (rev
85911)
@@ -0,0 +1,58 @@
+using System;
+using System.ComponentModel;
+using System.Drawing;
+using System.Globalization;
+using System.Reflection;
+using System.Resources;
+
+using Mono.Tests;
+
+class Program
+{
+ static void Main ()
+ {
+ ComponentResourceManager crm = new ComponentResourceManager (
+ typeof (MyComponent));
+
+ MyComponent comp = new MyComponent ("Welcome", "System");
+ crm.ApplyResources (comp, "$this", new CultureInfo ("nl-BE"));
+
+ Assert.IsNotNull (comp.BackgroundImage, "#A1");
+#if NET_2_0
+ Assert.IsNull (comp.Company, "#A2");
+#else
+ Assert.IsNotNull (comp.Company, "#A2");
+ Assert.AreEqual ("Company (NL-BE)", comp.Company, "#A3");
+#endif
+ Assert.AreEqual (0, comp.Interval, "#A4");
+ Assert.IsTrue (comp.Localizable, "#A5");
+ Assert.IsNull (comp.Name, "#A6");
+ Assert.IsNotNull (comp.Text, "#A8");
+ Assert.AreEqual ("Mono", comp.Text, "#A9");
+ Assert.IsNotNull (comp.Title, "#A10");
+ Assert.AreEqual ("Welcome", comp.Title, "#A11");
+ Assert.IsNotNull (comp.Zone, "#A12");
+ Assert.AreEqual ("Zone (NL-BE)", comp.Zone, "#A13");
+
+ comp = new MyComponent ("Welcome", "System");
+ crm = new ComponentResourceManager (typeof (MyComponent));
+ crm.ApplyResources (comp, "$this", new CultureInfo ("ja-JP"));
+
+ Assert.IsNotNull (comp.BackgroundImage, "#B1");
+ Assert.IsNotNull (comp.Company, "#B2");
+ Assert.AreEqual ("OSF", comp.Company, "#B3");
+ Assert.AreEqual (0, comp.Interval, "#B4");
+ Assert.IsTrue (comp.Localizable, "#B5");
+ Assert.IsNull (comp.Name, "#B6");
+ Assert.IsNotNull (comp.Text, "#B7");
+ Assert.AreEqual ("Mono", comp.Text, "#B8");
+ Assert.IsNotNull (comp.Title, "#B9");
+ Assert.AreEqual ("Welcome", comp.Title, "#B10");
+#if NET_2_0
+ Assert.IsNull (comp.Zone, "#B11");
+#else
+ Assert.IsNotNull (comp.Zone, "#B11");
+ Assert.AreEqual (string.Empty, comp.Zone, "#B12");
+#endif
+ }
+}
Property changes on: trunk/gert/standalone/bug82674/test6.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/gert/standalone/bug82832/test.cs
===================================================================
--- trunk/gert/standalone/bug82832/test.cs 2007-09-17 17:24:04 UTC (rev
85910)
+++ trunk/gert/standalone/bug82832/test.cs 2007-09-17 17:26:23 UTC (rev
85911)
@@ -254,8 +254,6 @@
}
}
-
-
class Assert
{
public static void AreEqual (int x, int y, string msg)
Modified: trunk/gert/standalone/known-issues
===================================================================
--- trunk/gert/standalone/known-issues 2007-09-17 17:24:04 UTC (rev 85910)
+++ trunk/gert/standalone/known-issues 2007-09-17 17:26:23 UTC (rev 85911)
@@ -79,4 +79,3 @@
bug82755/**
bug82796/**
bug82799/**
-bug82832/**
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches