public void No_TermList_Properties_Returns_Empty_List() { // Arrange // Act var result = QueryPostsF.GetTermLists <NoTermLists>(); // Assert Assert.Empty(result); }
public void With_TermList_Properties_Returns_PropertyInfo() { // Arrange // Act var result = QueryPostsF.GetTermLists <WithTermLists>(); // Assert Assert.Collection(result, x => { Assert.Equal(nameof(WithTermLists.Terms0), x.Name); Assert.Equal(typeof(TermList), x.PropertyType); }, x => { Assert.Equal(nameof(WithTermLists.Terms1), x.Name); Assert.Equal(typeof(TermList), x.PropertyType); } ); }