21 lines
1.1 KiB
Markdown
21 lines
1.1 KiB
Markdown
|
|
---
|
||
|
|
source_files:
|
||
|
|
- DataPRO/UnitTest/DTS.Common.DataModel.Tests/GroupShould.cs
|
||
|
|
generated_at: "2026-04-17T16:10:42.606123+00:00"
|
||
|
|
model: "zai-org/GLM-5-FP8"
|
||
|
|
schema_version: 1
|
||
|
|
sha256: "3fde041bb830365d"
|
||
|
|
---
|
||
|
|
|
||
|
|
# DTS.Common.DataModel.Tests
|
||
|
|
|
||
|
|
### Purpose
|
||
|
|
This module is a unit test assembly that validates the behavior of the `Group` class from the `GroupList.Model` namespace. It exists to ensure the correctness of filtering logic and state transitions within the data model layer, specifically testing the `Filter` method's string matching across multiple properties and the `ConvertToEmbedded` method's idempotency.
|
||
|
|
|
||
|
|
### Public Interface
|
||
|
|
|
||
|
|
**Class: `GroupShould`** (NUnit TestFixture)
|
||
|
|
- `void Filter_ShouldReturnTrueOnEmptyTerm()` — Verifies that `Group.Filter("")` returns `true`.
|
||
|
|
- `void Filter_ShouldReturnTrueOnNullTerm()` — Verifies that `Group.Filter(null)` returns `true`.
|
||
|
|
- `void Filter_ShouldReturnTrueWhenAssociatedTestSetupsIsNull()` — Verifies that `Filter` returns `true` when `AssociatedTestSetups` is null, regardless of search term.
|
||
|
|
- `void Filter_ShouldReturnTrueWhenfindTerm()`
|