public void AttributeSearch()
        {
            const string name      = "searchAttribute";
            var          attribute =
                _container.Resolve <AttributeConverter>()
                .Convert(new ConfigurationAttribute(name, type.@string, Present.No, new SearchOptions("sv_SE", Format.None, true, true)));

            Assert.That(attribute.name, Is.EqualTo(name));
            Assert.That(attribute.present, Is.Null);
            Assert.That(attribute.filter_attributes, Is.Not.Null);
            Assert.That(attribute.filter_attributes.Length, Is.EqualTo(0));
            Assert.That(attribute.sort_attributes, Is.Not.Null);
            Assert.That(attribute.sort_attributes.Length, Is.EqualTo(0));

            Assert.That(attribute.search_attributes, Is.Not.Null);
            var search = new search_attribute();

            Assert.DoesNotThrow(() => search = attribute.search_attributes.Single());
            Assert.That(search.format, Is.Not.Null);
            Assert.That(search.format.name, Is.EqualTo("(no format)"));
            Assert.That(search.locale, Is.EqualTo("sv_SE"));
            Assert.That(search.match_suffix, Is.True);
            Assert.That(search.suggest, Is.True);
            Assert.That(search.name, Is.EqualTo(name));
        }
        private static void AssertSearchEquivalent(search_attribute actual, IEnumerable <search_attribute> expected)
        {
            var match = expected.Single(a => a.name == actual.name);

            Assert.That(actual.format.name, Is.EqualTo(match.format.name));
            Assert.That(actual.locale, Is.EqualTo(match.locale));
            Assert.That(actual.match_suffix, Is.EqualTo(match.match_suffix));
            Assert.That(actual.suggest, Is.EqualTo(match.suggest));
        }