Esempio n. 1
0
        public void AddJsonFile_ThrowsIfJsonIsEmpty()
        {
            // Arrange
            var configurationBuilder = new ConfigurationBuilder();

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

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