Пример #1
0
        public void TestExplicit()
        {
            _PM.DeclarePlugin <IPluginStep1>(nameof(IPluginStep1));

            TestPluginConstructor TP = new TestPluginConstructor(_PM);

            _PM.SubscribePlugin(nameof(IPluginStep1), TP);

            FirePluginResult?R = _PM.FirePlugin(this, nameof(IPluginStep1), 1, out IList <PluginReturn <bool> > Returns);

            Assert.True(R?.Blocking);
        }
Пример #2
0
        public void TestExplicit()
        {
            _PM.DeclarePlugin <IPluginStep1>(nameof(IPluginStep1));


            TestPluginConstructor TP = new TestPluginConstructor();

            _PM.SubscribePlugin(nameof(IPluginStep1), TP);

            IList <FirePluginResult> R = _PM.FirePlugin(this, nameof(IPluginStep1), 1);

            Assert.True(R[0].Blocking);
        }