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> >(); }
public void CreateExecutable_WithAction_ShouldCreateActionExecutable() { IExecutable <IExtension> executable = this.testee.CreateExecutable(() => this.Action()); executable.Should().BeOfType <ActionExecutable <IExtension> >(); }