public void L1_Secret_IsNullOrEmpty_Test() { Assert.Throws <System.ArgumentNullException>(() => baseString.L1Signature(null)); Assert.Throws <System.ArgumentNullException>(() => baseString.L1Signature("")); Assert.Throws <System.ArgumentNullException>(() => ApiAuthorization.L1Signature(baseString, null)); Assert.Throws <System.ArgumentNullException>(() => ApiAuthorization.L1Signature(baseString, "")); }
public void L1_BaseString_IsNullOrEmpty_Test() { string testBaseString = null; Assert.Throws <System.ArgumentNullException>(() => testBaseString.L1Signature(secret)); Assert.Throws <System.ArgumentNullException>(() => "".L1Signature(secret)); Assert.Throws <System.ArgumentNullException>(() => ApiAuthorization.L1Signature(null, secret)); Assert.Throws <System.ArgumentNullException>(() => ApiAuthorization.L1Signature("", secret)); }