public void UsingDuplicateFieldNameShouldThrowException()
        {
            IObjectTokenization config = new ObjectTokenizationBuilder <string, string>()
                                         .WithField("Field1", o => o)
                                         .WithField("Field2", o => o)
                                         .WithField("Field1", o => o)
                                         .WithKey(i => i)
                                         .Build();

            Assert.Throws <LiftiException>(() => new IndexedFieldLookup(config.GetConfiguredFields(), new PlainTextExtractor(), Tokenizer.Default))
            .Message.Should().Be("Duplicate field name used: Field1. Field names must be unique across all item types registered with an index.");
        }
        public IndexedFieldLookupTests()
        {
            IObjectTokenization itemConfig = new ObjectTokenizationBuilder <string, string>()
                                             .WithKey(i => i)
                                             .WithField("Field1", r => r)
                                             .WithField("Field2", r => r)
                                             .WithField("Field3", r => r)
                                             .WithField("FieldX", r => r, o => o.WithStemming())
                                             .WithField("FieldY", r => r)
                                             .Build();

            this.sut = new IndexedFieldLookup(
                itemConfig.GetConfiguredFields(),
                new PlainTextExtractor(),
                Tokenizer.Default);
        }