Skip to content

Commit

Permalink
Add missing properties from the general MultiComboBox coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbware committed Oct 3, 2023
1 parent 27d722b commit bdb8164
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions COMET.Web.Common.Tests/Components/MultiComboBoxTestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ namespace COMET.Web.Common.Tests.Components

using DevExpress.Blazor;

using Microsoft.AspNetCore.Authorization.Infrastructure;

using TestContext = Bunit.TestContext;

using NUnit.Framework;
Expand Down Expand Up @@ -64,6 +62,15 @@ public void SetUp()
parameter.Add(p => p.ShowCheckBoxes, true);
parameter.Add(p => p.MaxNumberOfChips, 2);
parameter.Add(p => p.Enabled, true);

parameter.Add(p => p.EditorTextTemplate, builder =>
{
builder.OpenElement(0, "span");
builder.AddContent(1, "");
builder.CloseElement();
});

parameter.Add(p => p.RowTemplate, value => value.Name);
});
}

Expand All @@ -76,13 +83,13 @@ public void VerifyComponent()
Assert.IsNotEmpty(this.component.Instance.Data);
Assert.IsNotEmpty(this.component.Instance.Values);
Assert.IsTrue(this.component.Instance.ShowCheckBoxes);
Assert.IsNotNull(this.component.Instance.EditorTextTemplate);
});

this.component.Render();

var comboBox = this.component.FindComponent<DxComboBox<Category, Category>>();

Assert.Multiple(() => { Assert.IsNotNull(comboBox); });
Assert.IsNotNull(comboBox);
}
}
}

0 comments on commit bdb8164

Please sign in to comment.