From bdb8164d60c5272223b8d42e62fcac399fa131e7 Mon Sep 17 00:00:00 2001 From: Robbware Date: Tue, 3 Oct 2023 17:02:16 +0100 Subject: [PATCH] Add missing properties from the general MultiComboBox coverage. --- .../Components/MultiComboBoxTestFixture.cs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/COMET.Web.Common.Tests/Components/MultiComboBoxTestFixture.cs b/COMET.Web.Common.Tests/Components/MultiComboBoxTestFixture.cs index d0344af6..c0071508 100644 --- a/COMET.Web.Common.Tests/Components/MultiComboBoxTestFixture.cs +++ b/COMET.Web.Common.Tests/Components/MultiComboBoxTestFixture.cs @@ -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; @@ -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); }); } @@ -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>(); - - Assert.Multiple(() => { Assert.IsNotNull(comboBox); }); + Assert.IsNotNull(comboBox); } } } \ No newline at end of file