Files
cpp-thirdparty/winx64/bin/swigwin-4.0.0/Examples/test-suite/csharp/varargs_runme.cs
2019-08-04 21:38:19 -05:00

21 lines
386 B
C#

// 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");
}
}