Exemplo n.º 1
0
        public void CookController_TimerExpired_CookingDone()
        {
            _powerButton.Press();
            _timeButton.Press();
            _startCancelButton.Press();

            _timer.Expired += Raise.EventWith(this, EventArgs.Empty);

            _timer.DidNotReceive().Stop();
            _display.Received().Clear();
        }
Exemplo n.º 2
0
        public void StartActionUpdateAndRecord()
        {
            var pendingAction = actionRecorder.CreateToolAction(MetricActionType);

            timer.DidNotReceive().Start();

            pendingAction.UpdateEvent(new DeveloperLogEvent {
                GameletData = FakeGameletData
            });
            pendingAction.Record(() => { });

            logEvent.GameletData = FakeGameletData;
            metrics.Received(1).RecordEvent(EventType, logEvent);

            AssertTimerUsedCorrectly();
        }