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)); }
public void L2_PrivateKey_IsNull_Test() { Assert.Throws <System.ArgumentNullException>(() => baseString.L2Signature(null)); Assert.Throws <System.ArgumentNullException>(() => ApiAuthorization.L2Signature(baseString, null)); }