コード例 #1
0
        public void Use_NullDescriptor()
        {
            var builder = new DataProtectionBuilder(new ServiceCollection());

            Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.Use(builder, null));
        }
コード例 #2
0
        public void Use_NullBuilder()
        {
            var descriptor = new ServiceDescriptor(typeof(string), "a");

            Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.Use(null, descriptor));
        }