예제 #1
0
        public void L2_BaseString_IsNullOrEmpty_Test()
        {
            const string testBaseString = null;

            Assert.Throws <System.ArgumentNullException>(() => testBaseString.L2Signature(privateKey));
            Assert.Throws <System.ArgumentNullException>(() => "".L2Signature(privateKey));

            Assert.Throws <System.ArgumentNullException>(() => ApiAuthorization.L2Signature(null, privateKey));
            Assert.Throws <System.ArgumentNullException>(() => ApiAuthorization.L2Signature("", privateKey));
        }
예제 #2
0
        public void L2_PrivateKey_IsNull_Test()
        {
            Assert.Throws <System.ArgumentNullException>(() => baseString.L2Signature(null));

            Assert.Throws <System.ArgumentNullException>(() => ApiAuthorization.L2Signature(baseString, null));
        }