public void NullArguments() { argumentNullChecker.CheckForArgumentNullException(() => { new PokerDemoController(null, null, null, null); }); argumentNullChecker.CheckForArgumentNullException(() => { new PokerDemoController( () => { return(new Card()); }, null, null, null); }); argumentNullChecker.CheckForArgumentNullException(() => { new PokerDemoController( () => { return(new Card()); }, () => { return(new PokerHand()); }, null, null); }); argumentNullChecker.CheckForArgumentNullException(() => { new PokerDemoController( () => { return(new Card()); }, () => { return(new PokerHand()); }, new PokerHandJudge(() => { return(new PokerHandVerdict()); }), null); }); }
public void NullArguments() { nullExceptionChecker.CheckForArgumentNullException(() => { new CardHandsController(null, null); }); nullExceptionChecker.CheckForArgumentNullException(() => { new CardHandsController( () => { return(new CardDeck(() => { return new Card(); })); }, null); }); }