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