public void Should_AddCommand() { var builder = new SpecificationBuilder <MemberClass>(); var command = new CustomCommand(); builder.AddCommand(command); Assert.Single(builder.Commands); Assert.Same(command, builder.Commands.Single()); }
public void Should_AddCommand_ThrowException_When_NullCommand() { var builder = new SpecificationBuilder <MemberClass>(); Assert.Throws <ArgumentNullException>(() => { builder.AddCommand(null); }); }