コード例 #1
0
        public void IdentityProviderCollection_RegisterIdentityProvider_NullCheck()
        {
            var subject = new IdentityProviderCollection();

            Action a = () => subject.RegisterIdentityProviders(null);

            a.ShouldThrow <ArgumentNullException>().And.ParamName.Should().Be("options");
        }
コード例 #2
0
        public void IdentityProviderCollection_RegisterIdentityProvider_NullCheck()
        {
            var subject = new IdentityProviderCollection();

            Action a = () => subject.RegisterIdentityProviders(null);

            a.ShouldThrow<ArgumentNullException>().And.ParamName.Should().Be("options");
        }