/trunk/Examples/test-suite/csharp/varargs_runme.cs
# · C# · 20 lines · 13 code · 6 blank · 1 comment · 6 complexity · 3662c0626b0a031235cd5a4f40f2d2d8 MD5 · raw file
- // varargs test
- using System;
- using varargsNamespace;
- public class varargs_runme {
- public static void Main() {
- if (varargs.test("Hello") != "Hello")
- throw new Exception("Failed");
- Foo f = new Foo("Greetings");
- if (f.str != "Greetings")
- throw new Exception("Failed");
-
- if (f.test("Hello") != "Hello")
- throw new Exception("Failed");
- }
- }