コード例 #1
0
        public void ShouldCompareManyShuffleOrderedPropertiesObjectsEqual()
        {
            var first = new ManyShuffleOrderedProperties();
            var second = new ManyShuffleOrderedProperties();

            Assert.That(first.CompareTo(second), Is.EqualTo(0));
        }
コード例 #2
0
        public void ShouldCompareManyShuffleOrderedPropertiesObjectsBefore([Range(1, 8)] int firstNonEqualOrdering)
        {
            var first = new ManyShuffleOrderedProperties();
            var second = new ManyShuffleOrderedProperties();

            MakeNonEqualFrom(firstNonEqualOrdering, WithBeforeResult(), 8, second);

            Assert.That(first.CompareTo(second), Is.Negative);
        }