예제 #1
0
        public void TestInvokePrivateMethod()
        {
            var configuration = GetConfiguration();
            var test          = new ActorTestKit <M3>(configuration: configuration);

            int result = (int)test.Invoke("Add", 3, 4);

            test.Assert(result == 7, $"Incorrect result '{result}'");

            result = (int)test.Invoke("Add", new Type[] { typeof(int), typeof(int) }, 3, 4);
            test.Assert(result == 7, $"Incorrect result '{result}'");
        }