Skip to content

Commit

Permalink
Add specific assertion of data on the ItemTemplate for the MultiCombo…
Browse files Browse the repository at this point in the history
…Box test.
  • Loading branch information
Robbware committed Oct 3, 2023
1 parent bdb8164 commit 3bc2e9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions COMET.Web.Common.Tests/Components/MultiComboBoxTestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ public void VerifyComponent()

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

var comboBoxItemTemplate = (MultiComboBox<Category>) comboBox.Instance.ItemTemplate.Target;

Assert.IsTrue(comboBoxItemTemplate.Enabled);
Assert.IsNotEmpty(comboBoxItemTemplate.Data);
Assert.IsNotEmpty(comboBoxItemTemplate.Values);
Assert.IsNotNull(comboBoxItemTemplate.RowTemplate);
}
}
}

0 comments on commit 3bc2e9b

Please sign in to comment.