public void InstanceWithException_WhenRun_ThrowsException()
        {
            var sut = new NoopCheck(new NoopCheckSettings {
                LevelToSimulate = NotificationLevel.Critical
            });

            Assert.ThrowsAsync <Exception>(async() => await sut.RunAsync());
        }
        public async Task DefaultInstance_WhenRun_ReturnsSuccess(NotificationLevel level)
        {
            var sut = new NoopCheck(new NoopCheckSettings {
                LevelToSimulate = level
            });
            var result = await sut.RunAsync();

            Assert.That(result.Level, Is.EqualTo(level));
        }
        public void DefaultInstance_WhenGetName_ReturnsSensibleName(NotificationLevel level)
        {
            var sut = new NoopCheck(new NoopCheckSettings {
                LevelToSimulate = level
            });

            Assert.That(sut.ShortName, Is.Not.Null.And.Not.Empty);
            Assert.That(sut.ShortName, Does.Contain(level.ToString()));
        }