Пример #1
0
        public void CreateExecutable_WithActionOnExtensionAndInitializer_ShouldCreateActionOnExtensionWithInitializerExecutable()
        {
            IExecutable <IExtension> executable = this.testee.CreateExecutable(() => "AnyContext", (e, ctx) => this.ActionOnExtensionWithContext(e, ctx), (aware, ctx) => { });

            executable.Should().BeOfType <ActionOnExtensionWithInitializerExecutable <string, IExtension> >();
        }
Пример #2
0
        public void CreateExecutable_WithAction_ShouldCreateActionExecutable()
        {
            IExecutable <IExtension> executable = this.testee.CreateExecutable(() => this.Action());

            executable.Should().BeOfType <ActionExecutable <IExtension> >();
        }