Пример #1
0
        public void Start_ForIsListeningTrue_DoesNotCallWatcherStart(
            Watcher sut,
            [Freeze] IWrapper wrapper)
        {
            wrapper.Status
            .Returns(Status.Started);

            sut.Start();

            wrapper.DidNotReceive()
            .Start();
        }
Пример #2
0
        public void Stop_ForIsListeningFalse_DoesNotCallWatcherStop(
            Watcher sut,
            [Freeze] IWrapper wrapper)
        {
            wrapper.Status
            .Returns(Status.Created);

            sut.Stop();

            wrapper.DidNotReceive()
            .Stop();
        }