public void TestId() { HashSet <long> hashSet = new HashSet <long>(); Snowflake <Student> .SetNodesInfo(54321, 12345); for (int i = 0; i < 10; i += 1) { long result = Snowflake <Student> .NextId; Assert.DoesNotContain(result, hashSet); hashSet.Add(result); } }