예제 #1
0
        public void AddJsonFile_ThrowsIfJsonIsEmpty()
        {
            // Arrange
            var configurationBuilder = new ConfigurationBuilder();

            // Act and Assert
            var ex = Assert.Throws <FormatException>(() => InMemoryJsonConfigurationExtensions.AddJson(configurationBuilder, string.Empty));
        }
예제 #2
0
        public void AddJsonFile_ThrowsIfJsonIsNull()
        {
            // Arrange
            var configurationBuilder = new ConfigurationBuilder();

            // Act and Assert
            var ex = Assert.Throws <ArgumentNullException>(() => InMemoryJsonConfigurationExtensions.AddJson(configurationBuilder, null));
        }