Example #1
0
    public void Content_Property_Wrong_Type_Returns_None_With_ContentPropertyNotFoundMsg()
    {
        // Arrange

        // Act
        var result = QueryPostsF.GetPostContent <WithContentPropertyWrongType>();

        // Assert
        result.AssertNone().AssertType <ContentPropertyNotFoundMsg <WithContentPropertyWrongType> >();
    }
Example #2
0
    public void No_Content_Property_Returns_None_With_ContentPropertyNotFoundMsg()
    {
        // Arrange

        // Act
        var result = QueryPostsF.GetPostContent <NoContentProperty>();

        // Assert
        result.AssertNone().AssertType <ContentPropertyNotFoundMsg <NoContentProperty> >();
    }
Example #3
0
    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);
    }