Пример #1
0
        public void InitCompleteIsCalledOnInterrupt()
        {
            // when
            var target = new BeaconSendingInitState();

            target.OnInterrupted(context);

            // then
            context.Received(1).InitCompleted(false);
        }
        public void OnInterruptedCallsInitCompletedInContext()
        {
            // given
            var target = new BeaconSendingInitState();

            // when
            target.OnInterrupted(mockContext);

            // then
            mockContext.Received(1).InitCompleted(false);
        }