public void TestGeneratesUuid() { var uuid = new UuIdService(); var token = uuid.GenerateUuId(); Assert.NotNull(token); Assert.True(token.Length > 0); }
public void TestUuIdsAreUnique() { var tokens = new HashSet <string>(); var uuid = new UuIdService(); for (var i = 0; i < 100; i++) { tokens.Add(uuid.GenerateUuId()); } Assert.Equal(100, tokens.Count); }