public void ThrowsDuplicateOrderChainException_GivenSpecWithMultipleOrderChains() { var spec = new StoresOrderedTwoChainsSpec(); Action sutAction = () => spec.Evaluate(StoreSeed.Get()); sutAction.Should() .Throw <DuplicateOrderChainException>() .WithMessage("The specification contains more than one Order chain!"); }
public void ThrowsDuplicateOrderChainException_GivenSpecWithMultipleOrderChains() { var spec = new StoresOrderedTwoChainsSpec(); Assert.Throws <DuplicateOrderChainException>(() => spec.Evaluate(StoreSeed.Get())); }