public void IdEqualityUsingBuiltInFunction() { Guid g = Guid.NewGuid(); DMTId id = DMTId.FromGuid(g); DMTId id2 = DMTId.FromGuid(g); Assert.True(id.Equals((object)id2)); }
public void SerializeId() { var id = DMTId.NewId(); XDocument doc = SerializerHelper.SerializeObject(id); Assert.Equal("root", doc.Root.Name); Assert.Equal(id, DMTId.FromGuid(Guid.Parse(doc.Root.Value))); }
public void IdEquality() { Guid g = Guid.NewGuid(); DMTId id = DMTId.FromGuid(g); DMTId id2 = DMTId.FromGuid(g); Assert.True(id.Equals(id2)); }