示例#1
0
        public void GreaterThan_Returned_For_More_Specific_Range(StatusCodeRange x, StatusCodeRange y)
        {
            var comparer = new StatusCodeRangeSpecificnessComparer();
            var result   = comparer.Compare(y, x);

            result.Should().BeGreaterThan(0);
        }
示例#2
0
        public void Equal_Returned_For_Conflicting_Ranges(StatusCodeRange x, StatusCodeRange y)
        {
            var comparer = new StatusCodeRangeSpecificnessComparer();
            var result   = comparer.Compare(x, y);

            result.Should().Be(0);
        }
示例#3
0
        public void LessThan_Returned_For_Less_Specific_Range(StatusCodeRange x, StatusCodeRange y)
        {
            var comparer = new StatusCodeRangeSpecificnessComparer();
            var result   = comparer.Compare(x, y);

            result.Should().BeLessThan(0);
        }