public void Use_NullDescriptor() { var builder = new DataProtectionBuilder(new ServiceCollection()); Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.Use(builder, null)); }
public void Use_NullBuilder() { var descriptor = new ServiceDescriptor(typeof(string), "a"); Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.Use(null, descriptor)); }