public void ValidateExistingPolicyTest() { Dictionary <string, string> policies = new Dictionary <string, string>() { { "test", "test" }, { "Abc", "abc" }, { "123", "123" } }; SasTokenHelper.GetExistingPolicy <string>(policies, "ABC"); SasTokenHelper.GetExistingPolicy <string>(policies, "test"); SasTokenHelper.GetExistingPolicy <string>(policies, "tesT"); SasTokenHelper.GetExistingPolicy <string>(policies, "123"); AssertThrows <ArgumentException>(() => SasTokenHelper.GetExistingPolicy <string>(policies, "test1")); }
public void ValidateExistingPolicyWithEmptyPoliciesTest() { Dictionary <string, string> policies = new Dictionary <string, string>(); AssertThrows <ArgumentException>(() => SasTokenHelper.GetExistingPolicy <string>(policies, "test1")); }