public void SpecificMimeSubTypeGreaterThanGeneric()
        {
            var acceptMediaType1 = new ResponseMediaTypeSelector.AcceptMediaType("application", "json");
            var acceptMediaType2 = new ResponseMediaTypeSelector.AcceptMediaType("application", "*");

            Assert.Equal(1, acceptMediaType1.CompareTo(acceptMediaType2));
            Assert.Equal(-1, acceptMediaType2.CompareTo(acceptMediaType1));
        }
        public void SpecificParameterGreaterThanGenericWithSameQualityFactor()
        {
            var acceptMediaType1 = new MediaTypeDescriptor.Builder <ResponseMediaTypeSelector.AcceptMediaType>(
                (a, b, c) => new ResponseMediaTypeSelector.AcceptMediaType(a, b, c))
                                   .WithMimeType("application")
                                   .WithMimeSubType("xml")
                                   .WithParameter("version", "1.0")
                                   .Build();

            var acceptMediaType2 = new ResponseMediaTypeSelector.AcceptMediaType("application", "json");

            Assert.Equal(1, acceptMediaType1.CompareTo(acceptMediaType2));
            Assert.Equal(-1, acceptMediaType2.CompareTo(acceptMediaType1));
        }