public void TwoGuidsShouldNotEqual() { var generator = new ReactIdGenerator(); var shortGuid1 = generator.Generate(); var shortGuid2 = generator.Generate(); Assert.NotEqual(shortGuid1, shortGuid2); }
public void ShouldStartsWithReact() { var generator = new ReactIdGenerator(); var shortGuid = generator.Generate(); Assert.StartsWith("react_", shortGuid); }
public void GuidShouldHaveFixedRange() { var generator = new ReactIdGenerator(); var shortGuid = generator.Generate(); Assert.Equal(19, shortGuid.Length); }