diff --git a/backend/FwLite/MiniLcm.Tests/CreateEntryTestsBase.cs b/backend/FwLite/MiniLcm.Tests/CreateEntryTestsBase.cs index ceb32c1a2..86fcb0a91 100644 --- a/backend/FwLite/MiniLcm.Tests/CreateEntryTestsBase.cs +++ b/backend/FwLite/MiniLcm.Tests/CreateEntryTestsBase.cs @@ -29,10 +29,8 @@ public async Task CanCreateEntry_AutoFaker() .For(e => e.ComplexForms).Exclude(e => e.Id) //predefined is always true in fwdata bridge, so we need to exclude it for now .For(e => e.Senses).For(s => s.SemanticDomains).Exclude(s => s.Predefined) - // TODO: Figure out how to exclude just PartOfSpeech.Predefined - // .For(e => e.Senses).Exclude(s => s.PartOfSpeech.Predefined)); // rejected because PartOfSpeech could be null - // .For(e => e.Senses).Exclude(s => s.PartOfSpeech?.Predefined)); // not allowed because "An expression tree lambda may not contain a null propagating operator." - .For(e => e.Senses).Exclude(s => s.PartOfSpeech)); // Not ideal but best we can do for now + .For(e => e.Senses).Exclude(s => s.PartOfSpeech!.Predefined) + ); } [Fact]