Ejemplo n.º 1
0
        public void GreaterClusterTime_should_return_expected_result(long?timestamp1, long?timestamp2, long?expectedTimestamp)
        {
            var x = CreateClusterTime(timestamp1);
            var y = CreateClusterTime(timestamp2);
            var expectedResult = CreateClusterTime(expectedTimestamp);

            var result = ClusterClock.GreaterClusterTime(x, y);

            result.Should().Be(expectedResult);
        }
Ejemplo n.º 2
0
        public void constructor_should_initialize_instance()
        {
            var result = new ClusterClock();

            result.ClusterTime.Should().BeNull();
        }