Example #1
0
    public void InheritValue_Ok()
    {
        var col  = new MockTableColumn("Name", typeof(string));
        var attr = new AutoGenerateClassAttribute()
        {
            Align        = Alignment.Center,
            TextWrap     = true,
            Editable     = false,
            Filterable   = true,
            Readonly     = true,
            Searchable   = true,
            ShowTips     = true,
            Sortable     = true,
            TextEllipsis = true
        };

        col.InheritValue(attr);
        Assert.Equal(Alignment.Center, col.Align);
        Assert.True(attr.TextWrap);
        Assert.False(attr.Editable);
        Assert.True(attr.Filterable);
        Assert.True(attr.Readonly);
        Assert.True(attr.Searchable);
        Assert.True(attr.ShowTips);
        Assert.True(attr.Sortable);
        Assert.True(attr.TextEllipsis);
    }