public void LowerItemBeforeHigherItemInSameVersion()
            {
                var version1 = new EventVersion(1, 2, 1);
                var version2 = new EventVersion(1, 2, 2);

                Assert.Equal(-1, version1.CompareTo(version2));
            }
Пример #2
0
            public void HigherItemAfterLowerItemInSameVersion()
            {
                var version1 = new EventVersion(1, 2, 1);
                var version2 = new EventVersion(1, 2, 2);

                Assert.Equal(1, version2.CompareTo(version1));
            }
            public void HigherVersionAfterLowerVersion()
            {
                var version1 = new EventVersion(1, 2, 2);
                var version2 = new EventVersion(2, 1, 1);

                Assert.Equal(1, version2.CompareTo(version1));
            }
Пример #4
0
            public void LowerItemBeforeHigherItemInSameVersion()
            {
                var version1 = new EventVersion(1, 2, 1);
                var version2 = new EventVersion(1, 2, 2);

                Assert.Equal(-1, version1.CompareTo(version2));
            }