public void WhenExecutingAMethod_ThenTheMethodIsCalled()
        {
            var obj = new ExecutableObject();

            MethodExecutor.ExecuteMethod(obj, 123);

            Assert.AreEqual(123, obj.TheValue);
        }
        public void WhenExecutingAMethod_ThenTheMethodIsCalled()
        {
            var obj = new ExecutableObject();

            MethodExecutor.ExecuteMethod(obj, 123);

            Assert.AreEqual(123, obj.TheValue);
        }
        public void WhenExecutingAMethodOnASecondInstance_ThenTheMethodIsCalledOnTheSecondInstance()
        {
            var first  = new ExecutableObject();
            var second = new ExecutableObject();

            MethodExecutor.ExecuteMethod(first, 123);
            MethodExecutor.ExecuteMethod(second, 456);

            Assert.AreEqual(456, second.TheValue);
        }
        public void WhenExecutingAMethodOnASecondInstance_ThenTheMethodIsCalledOnTheSecondInstance()
        {
            var first = new ExecutableObject();
            var second = new ExecutableObject();

            MethodExecutor.ExecuteMethod(first, 123);
            MethodExecutor.ExecuteMethod(second, 456);

            Assert.AreEqual(456, second.TheValue);
        }
 public void WhenExecutingAMethod1000Times_ThenTheSpeedIsOK()
 {
     var obj = new ExecutableObject();
     
     for (int i= 0;i<1000;i++)
     {
         MethodExecutor.ExecuteMethod(obj, i);
     }
     
     Assert.True(true);
 }
        public void WhenExecutingAMethod1000Times_ThenTheSpeedIsOK()
        {
            var obj = new ExecutableObject();

            for (int i = 0; i < 1000; i++)
            {
                MethodExecutor.ExecuteMethod(obj, i);
            }

            Assert.True(true);
        }