示例#1
0
        public void Ctor_KeyNull_SetsKey()
        {
            // Arrange
            // Act
            var ex = new MissingConfigurationKeyException(null, new DelegateConfiguration(s => "Foo"));

            // Assert
            Assert.That(ex.Key, Is.Null);
        }
示例#2
0
        public void Ctor_SetsKey()
        {
            // Arrange
            // Act
            var ex = new MissingConfigurationKeyException("Foo", new DelegateConfiguration(s => "Foo"));

            // Assert
            Assert.That(ex.Key, Is.EqualTo("Foo"));
        }
示例#3
0
        public void Ctor_SetsConfiguration()
        {
            //Arrange
            var config = new Configurer();

            // Act
            var ex = new MissingConfigurationKeyException("Foo", config);

            // Assert
            Assert.That(ex.Configuration, Is.EqualTo(config.ToString()));
        }