diff options
Diffstat (limited to 'Examples/test-suite/csharp/director_wstring_runme.cs')
-rw-r--r-- | Examples/test-suite/csharp/director_wstring_runme.cs | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/Examples/test-suite/csharp/director_wstring_runme.cs b/Examples/test-suite/csharp/director_wstring_runme.cs index 6f97dcb50..fcb6e7afa 100644 --- a/Examples/test-suite/csharp/director_wstring_runme.cs +++ b/Examples/test-suite/csharp/director_wstring_runme.cs @@ -17,10 +17,19 @@ public class runme if (b.get_first() != "hello world!") throw new ApplicationException("Incorrect get_first:" + b.get_first()); + /* b.call_process_func(); - if (b.smem != "hello") throw new ApplicationException("Incorrect smem:" + b.smem); + */ + + b.call_process_wstring_func(); + if (b.smem != "hello (wstring)") + throw new ApplicationException("Incorrect smem:" + b.smem); + + b.call_process_wstring_ref_func(); + if (b.smem != "hello (wstring ref)") + throw new ApplicationException("Incorrect smem:" + b.smem); } } @@ -38,4 +47,12 @@ class director_wstring_B : A { this.smem = s; } -}
\ No newline at end of file + public override void process_wstring_text(String s) + { + this.smem = s + " (wstring)"; + } + public override void process_wstring_ref_text(String s) + { + this.smem = s + " (wstring ref)"; + } +} |