public void TestCreateVectorClock()
        {
            var vc = VectorClockHelper.CreateEmpty();

            Assert.IsNotNull(vc);
            Assert.AreEqual(0, vc.Replicas.Count);
        }
        public void TestSetAndGetRandom([Values(1, 2, 5, 10, 20, 100)] int replicaCount)
        {
            var repValues = GenerateRandomKeyValues(replicaCount);

            var vc = VectorClockHelper.CreateEmpty();

            vc = vc.SetReplicaValues(repValues);

            CheckContainsAll(repValues, vc);
        }
        public void TestSetAndGet()
        {
            var value       = 10UL;
            var replicaId   = "replica 1";
            var vc          = VectorClockHelper.CreateEmpty().SetReplicaValue(replicaId, value);
            var actualValue = vc.GetReplicaValue(replicaId);

            Assert.IsTrue(actualValue.HasValue);
            Assert.AreEqual(value, actualValue.Value);
        }