public void OnStart_ScannerReturnsNull_DoNotThrow() { // given _scanner.Stub(x => x.ScanForMessageModules()).Return(null); // when TestDelegate onStartAction = () => _sut.OnStart(); // then Assert.DoesNotThrow(onStartAction); }