Пример #1
0
        public void Use_NullDescriptor()
        {
            var builder = new Mock <IDataProtectionBuilder>();

            Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.Use(builder.Object, null));
        }
Пример #2
0
        public void Use_NullBuilder()
        {
            var descriptor = new ServiceDescriptor(typeof(string), "a");

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