swig/Examples/test-suite/csharp/bools_runme.cs
William S Fulton 410f7d5913 remove executable bits
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11200 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-01 06:21:56 +00:00

29 lines
477 B
C#

// This is the bool runtime testcase. It checks that the C++ bool type works.
using System;
using boolsNamespace;
public class bools_runme {
public static void Main() {
bool t = true;
bool f = false;
check_bo(f);
check_bo(t);
}
public static void check_bo(bool input) {
for( int i=0; i<1000; i++ ) {
if( bools.bo(input) != input ) {
string ErrorMessage = "Runtime test check_bo failed.";
throw new Exception(ErrorMessage);
}
}
}
}