public void Random_GenerateString_Standard() { RandomOrgClient proxy = new RandomOrgClient(Constants.ApiKey); string result = proxy.GetString(10); Assert.IsTrue(result.ToCharArray().Except(proxy.AllowedStringCharacters).Count() == 0); }
public void Random_GenerateString_Specific() { RandomOrgClient proxy = new RandomOrgClient(Constants.ApiKey); char[] allowed = new char[] { '1', '2', '3' }; string result = proxy.GetString(10, allowed); Assert.IsTrue(result.ToCharArray().Except(allowed).Count() == 0); }