Exemplo n.º 1
0
        public void Lookup_SingleElementAdded_ReturnsTrue(OUR_SetWithVCElement <TestType> value)
        {
            _orSetService.Merge(new List <OUR_SetWithVCElement <TestType> > {
                value
            }.ToImmutableHashSet(), ImmutableHashSet <OUR_SetWithVCElement <TestType> > .Empty);

            var lookup = _orSetService.Lookup(value.Value);

            Assert.True(lookup);
        }
Exemplo n.º 2
0
        public void Lookup_SingleElementAdded_ReturnsTrue(TestType value, Guid tag, Node node)
        {
            var clock = ImmutableSortedDictionary <Node, long> .Empty;

            _ourSetService.DownstreamAdd(value, tag, new VectorClock(clock.Add(node, 0)));

            var lookup = _ourSetService.Lookup(value);

            Assert.True(lookup);
        }