summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono
diff options
context:
space:
mode:
authorBruno da Silva Belo <bruno.belo@expertisesolutions.com.br>2019-11-07 23:33:09 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-07 23:33:33 -0300
commit0a2c9f57ef9864f30a94abfd847870d3765f874c (patch)
treeb953d8d5bf4af6ea9a7ec15cc0124632b3c526fd /src/tests/efl_mono
parent77207f9b5855189a4e818ed087f702080afc2068 (diff)
csharp: Localization strings with CultureInfo.
Summary: ref T8404 Reviewers: lauromoura, felipealmeida, YOhoho Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8404 Differential Revision: https://phab.enlightenment.org/D10608
Diffstat (limited to 'src/tests/efl_mono')
-rw-r--r--src/tests/efl_mono/Strings.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tests/efl_mono/Strings.cs b/src/tests/efl_mono/Strings.cs
index dc5bd08..43c6717 100644
--- a/src/tests/efl_mono/Strings.cs
+++ b/src/tests/efl_mono/Strings.cs
@@ -14,6 +14,7 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16using System; 16using System;
17using System.Globalization;
17 18
18namespace TestSuite { 19namespace TestSuite {
19 20
@@ -83,7 +84,8 @@ class TestStrings
83 String str = String.Empty; 84 String str = String.Empty;
84 var obj = new Dummy.TestObject(); 85 var obj = new Dummy.TestObject();
85 obj.OutOwnString(out str); 86 obj.OutOwnString(out str);
86 Test.AssertEquals(str.ToString(), "out_own_string"); 87 Test.AssertEquals(str.ToString(CultureInfo.CurrentCulture),
88 "out_own_string");
87 } 89 }
88 System.GC.Collect(); 90 System.GC.Collect();
89 } 91 }
@@ -254,7 +256,8 @@ class TestStringshare
254 String str = String.Empty; 256 String str = String.Empty;
255 var obj = new Dummy.TestObject(); 257 var obj = new Dummy.TestObject();
256 obj.OutOwnStringshare(out str); 258 obj.OutOwnStringshare(out str);
257 Test.AssertEquals(str.ToString(), "out_own_stringshare"); 259 Test.AssertEquals(str.ToString(CultureInfo.CurrentCulture),
260 "out_own_stringshare");
258 } 261 }
259 System.GC.Collect(); 262 System.GC.Collect();
260 } 263 }