public void Lookup_Added_ReturnsTrue(TestType value, long timestamp)
        {
            _lwwSetService.DownstreamAssign(value, timestamp);

            var lookup = _lwwSetService.Lookup(value);

            Assert.True(lookup);
        }
Esempio n. 2
0
        public void Lookup_Added_ReturnsTrue(TestType value, long timestamp)
        {
            var addElement = new LWW_OptimizedSetElement <TestType>(value, timestamp, false);

            _lwwSetService.Merge(new HashSet <LWW_OptimizedSetElement <TestType> > {
                addElement
            }.ToImmutableHashSet());

            var lookup = _lwwSetService.Lookup(value);

            Assert.True(lookup);
        }