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); }
public void TestChangeBool() { Assert.AreEqual(false, MyDLLCliWrapper.ChangeBool(true)); Assert.AreEqual(true, MyDLLCliWrapper.ChangeBool(false)); }