public void MessageTests()
        {
            PluginExecutionContext.SetupGet(s => s.MessageName).Returns("Machin");

            AssertException <InvalidPluginExecutionException>(() =>
            {
                var message = LocalContext.MessageName;
            });

            PluginExecutionContext.SetupGet(s => s.MessageName).Returns("Update");

            var messageOk = LocalContext.MessageName;
        }
        public void ModeTests()
        {
            PluginExecutionContext.SetupGet(s => s.Mode).Returns(45);

            AssertException <InvalidPluginExecutionException>(() =>
            {
                var mode = LocalContext.Mode;
            });

            PluginExecutionContext.SetupGet(s => s.Mode).Returns(0);

            var modeOk = LocalContext.Mode;
        }