Exemplo n.º 1
0
        public void Should_be_mergable_with_other()
        {
            // when
            var reconstruct = new GraphReconstruct(EntityId, GraphId, new EntityQuad[0]);
            var other       = new GraphReconstruct(EntityId, GraphId, new EntityQuad[0]);

            // then
            reconstruct.CanMergeWith(other).Should().BeTrue();
        }
Exemplo n.º 2
0
        public void Should_be_mergable_with_update()
        {
            // when
            var reconstruct = new GraphReconstruct(EntityId, GraphId, new EntityQuad[0]);
            var update      = new GraphUpdate(EntityId, GraphId, new EntityQuad[0], new EntityQuad[0]);

            // then
            reconstruct.CanMergeWith(update).Should().BeTrue();
        }