diff options
Diffstat (limited to 'Examples/test-suite/csharp/li_std_string_runme.cs')
-rw-r--r-- | Examples/test-suite/csharp/li_std_string_runme.cs | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Examples/test-suite/csharp/li_std_string_runme.cs b/Examples/test-suite/csharp/li_std_string_runme.cs index 4c9d71384..b4bdcfe42 100644 --- a/Examples/test-suite/csharp/li_std_string_runme.cs +++ b/Examples/test-suite/csharp/li_std_string_runme.cs @@ -94,7 +94,20 @@ public class runme Structure.StaticMemberString2 = s; if (Structure.StaticMemberString2 != s) throw new Exception("StaticMemberString2 test 2"); - if (Structure.ConstStaticMemberString != "const static member string") - throw new Exception("ConstStaticMemberString test"); + if (Structure.ConstStaticMemberString != "const static member string") + throw new Exception("ConstStaticMemberString test"); + + if (li_std_string.stdstring_empty() != "") + throw new Exception("stdstring_empty test"); + if (li_std_string.c_empty() != "") + throw new Exception("c_empty test"); + if (li_std_string.c_null() != null) + throw new Exception("c_null test"); + if (li_std_string.get_null(li_std_string.c_null()) != null) + throw new Exception("get_null c_null test"); + if (li_std_string.get_null(li_std_string.c_empty()) != "non-null") + throw new Exception("get_null c_empty test"); + if (li_std_string.get_null(li_std_string.stdstring_empty()) != "non-null") + throw new Exception("get_null stdstring_empty test"); } } |