public void FastRandomStringTest() { for (int i = 0; i < 16; ++i) { Assert.IsTrue(BotUtils.FastRandomString().Length > 0); } }
public void ObfuscateLuaTest() { string x = BotUtils.FastRandomString(); string sample = $"{{v:0}}={x}"; (string, string)result = BotUtils.ObfuscateLua(sample); Assert.AreEqual(result.Item1, $"{result.Item2}={x}"); }