Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine(MyDLLCliWrapper.Plus2(2));
            Console.WriteLine(MyDLLCliWrapper.ChangeBool(true));
            Console.WriteLine(MyDLLCliWrapper.PlusKakko("test"));
            Console.WriteLine(MyDLLCliWrapper.GetEnum());

            MyDLLCliWrapper.SetCallback(num =>
            {
                MyNum = num;
            });
            MyDLLCliWrapper.SetTwo();
            Console.WriteLine("MyNum: {0}", MyNum);
            MyDLLCliWrapper.SetThree();
            Console.WriteLine("MyNum: {0}", MyNum);
        }
Exemplo n.º 2
0
 public void TestChangeBool()
 {
     Assert.AreEqual(false, MyDLLCliWrapper.ChangeBool(true));
     Assert.AreEqual(true, MyDLLCliWrapper.ChangeBool(false));
 }