public void GetEntriesWithMatchingGlossSortedByLexicalForm_TwoEntriesWithDifferingGlosses_OnlyEntryWithmatchingGlossIsFound() { using (var env = new TestEnvironment()) { const string glossToFind = "Gloss To Find."; env.AddEntryWithGloss(glossToFind); env.AddEntryWithGloss("Gloss Not To Find."); LanguageForm glossLanguageForm = new LanguageForm("en", glossToFind, new MultiText()); var writingSystem = WritingSystemDefinitionForTest("en"); var list = env.Repository.GetEntriesWithMatchingGlossSortedByLexicalForm( glossLanguageForm, writingSystem ); Assert.AreEqual(1, list.Count); Assert.AreSame(glossToFind, list[0].RealObject.Senses[0].Gloss["en"]); } }