public void FromInt64ReturnsExpectedResult() { var guid = Guid.Parse("65678f9b-d139-4786-8305-b9166922b378"); var sut = Uuid.FromInt64(7306966819824813958L, -9005588373953137800L); var expected = Uuid.FromGuid(guid); Assert.Equal(expected, sut); }
public void ToDtoReturnsExpectedResult() { var msb = GetRandomInt64(); var lsb = GetRandomInt64(); var sut = Uuid.FromInt64(msb, lsb); var result = sut.ToDto(); Assert.NotNull(result.Structured); Assert.Equal(lsb, result.Structured.LeastSignificantBits); Assert.Equal(msb, result.Structured.MostSignificantBits); }