public void PlayAgain_VerifyFunctionNotCalled() { var predicate = new MockFunc <bool>(); var state = CHECK_FOR_WIN(); StateTests <IGameState> .For(state) .When(() => state.PlayAgain(() => predicate.Run())) .Invoke(); predicate.VerifyFunctionNotCalled(); }
public void CheckForWin_VerifyFunctionNotCalled() { var predicate = new MockFunc <bool>(); var state = PLAY(); StateTests <IGameState> .For(state) .When(() => state.CheckForWin(() => predicate.Run())) .Invoke(); predicate.VerifyFunctionNotCalled(); }