linux-packaging-mono/mcs/tests/test-externalias-01.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

25 lines
535 B
C#

// Compiler options: -r:MyAssembly01=test-externalias-00-lib.dll -r:MyAssembly02=test-externalias-01-lib.dll
extern alias MyAssembly01;
extern alias MyAssembly02;
using System;
public class Test
{
public static int Main ()
{
if (MyAssembly01::GlobalClass.StaticMethod () != 1)
return 1;
if (MyAssembly02::GlobalClass.StaticMethod () != 2)
return 1;
if (new MyAssembly01::GlobalClass ().InstanceMethod () != 1)
return 1;
if (new MyAssembly02::GlobalClass ().InstanceMethod () != 2)
return 1;
return 0;
}
}