示例#1
0
        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());
        }
示例#2
0
        public void Should_AddCommand_ThrowException_When_NullCommand()
        {
            var builder = new SpecificationBuilder <MemberClass>();

            Assert.Throws <ArgumentNullException>(() => { builder.AddCommand(null); });
        }