Esempio n. 1
0
    public void More_Than_One_MetaDictionary_Properties_Returns_None_With_MoreThanOneMetaDictionaryMsg()
    {
        // Arrange

        // Act
        var result = QueryPostsF.GetMetaDictionary <MoreThanOneMetaDictionaryProperty>();

        // Assert
        result.AssertNone().AssertType <MoreThanOneMetaDictionaryMsg <MoreThanOneMetaDictionaryProperty> >();
    }
Esempio n. 2
0
    public void No_MetaDictionary_Properties_Returns_None_With_MetaDictionaryPropertyNotFoundMsg()
    {
        // Arrange

        // Act
        var result = QueryPostsF.GetMetaDictionary <NoMetaDictionaryProperties>();

        // Assert
        result.AssertNone().AssertType <MetaDictionaryPropertyNotFoundMsg <NoMetaDictionaryProperties> >();
    }
Esempio n. 3
0
    public void With_Single_MetaDictionary_Property_Returns_PropertyInfo()
    {
        // Arrange

        // Act
        var result = QueryPostsF.GetMetaDictionary <SingleMetaDictionaryProperty>();

        // Assert
        var some = result.AssertSome();

        Assert.Equal(nameof(SingleMetaDictionaryProperty.Meta), some.Name);
    }