public void Content_Property_Wrong_Type_Returns_None_With_ContentPropertyNotFoundMsg() { // Arrange // Act var result = QueryPostsF.GetPostContent <WithContentPropertyWrongType>(); // Assert result.AssertNone().AssertType <ContentPropertyNotFoundMsg <WithContentPropertyWrongType> >(); }
public void No_Content_Property_Returns_None_With_ContentPropertyNotFoundMsg() { // Arrange // Act var result = QueryPostsF.GetPostContent <NoContentProperty>(); // Assert result.AssertNone().AssertType <ContentPropertyNotFoundMsg <NoContentProperty> >(); }
public void With_Content_Property_Returns_Content_Property() { // Arrange // Act var result = QueryPostsF.GetPostContent <WithContentProperty>(); // Assert var some = result.AssertSome(); Assert.Equal(nameof(WpPostEntity.Content), some.Name); Assert.Equal(typeof(string), some.PropertyType); }