Beispiel #1
0
        public void TestOrder1()
        {
            var a = UInt64Serializer.ToDatabase(0);
            var b = UInt64Serializer.ToDatabase(1);

            a.Should().BeLessThan(b);
        }
Beispiel #2
0
        public void TestOrder4()
        {
            var a = UInt64Serializer.ToDatabase(0);
            var b = UInt64Serializer.ToDatabase(ulong.MaxValue);

            a.Should().BeLessThan(b);
        }
Beispiel #3
0
        public void TestRoundtrip([ValueSource(nameof(Values))] ulong value)
        {
            var actualValue = UInt64Serializer.FromDatabase(UInt64Serializer.ToDatabase(value));

            actualValue.Should().Be(value);
        }