Ejemplo n.º 1
0
        public void ImplicitConversionOperationShouldReturnStampWhenTuple()
        {
            // (((0,(1,0)),(1,0)),(1,2,(0,(1,0,2),0)))
            Stamp s1 = new Stamp(
                new Id.Node(
                    new Id.Node(0, new Id.Node(1, 0)),
                    new Id.Node(1, 0)
                    ),
                new Event.Node(
                    1, 2, new Event.Node(0, new Event.Node(1, 0, 2), 0))
                );
            Stamp s2 = (((0, (1, 0)), (1, 0)), (1, 2, (0, (1, 0, 2), 0)));

            //         |<----- id ----->| |<----- event ---->|

            s1.Equals(s2).Should().BeTrue();
        }
Ejemplo n.º 2
0
 public bool Equals(TimeStamp t)
 {
     return(Stamp.Equals(t.Stamp));
 }