public void WithCommandRawOutput_returns_the_builder() { var expected = new MockOutputBuilder(); var command = new Mock<BaseOutputCommand<IOutput>>(); expected.MockCommand = command.Object; var actual = expected.WithCommandRawOutput(null); actual.ShouldBe(expected); }
public void WithCommandRawOutput_sets_the_rawOutputAction_on_the_command() { var builder = new MockOutputBuilder(); var command = new Mock<BaseOutputCommand<IOutput>>(); builder.MockCommand = command.Object; // ReSharper disable once ConvertToLocalFunction -- not possible Action<object> expected = _ => { }; builder.WithCommandRawOutput(expected); command.Object.RawOutputAction.ShouldBe(expected); }