Пример #1
0
        public void InvalidAgentConfiguration_WithoutException()
        {
            // Arrange
            var sut = new SaboteurAgentConfig();

            // Act / Assert
            Assert.All(sut.GetAgentsConfiguration(), Assert.Null);
        }
Пример #2
0
        public void FailsToGetAgentConfiguration_WithException()
        {
            // Arrange
            var expectedException = new Exception();
            var sut = new SaboteurAgentConfig(expectedException);

            // Act / Assert
            Assert.Throws(expectedException.GetType(), () => sut.GetAgentsConfiguration());
        }