public void Gen_Test() { int count = 1000; int expectedLength = _config.DynamicCssClassPrefix.Length + 7; var set = new HashSet <string>(count); for (int i = 0; i < count; i++) { var uid = _instance.GenId(); Assert.IsFalse(set.Contains(uid)); Assert.IsTrue(uid.StartsWith(_config.DynamicCssClassPrefix)); Assert.AreEqual(expectedLength, uid.Length); } }
private string GenerateDynName() { return(_clsNameGenerator.GenId()); }
private string GenerageDynamicName() => _clsNameGenerator.GenId();