1.1 KiB
1.1 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |
|---|---|---|---|---|---|
|
2026-04-17T16:15:37.020486+00:00 | zai-org/GLM-5-FP8 | 1 | 535fd714b2c15b81 |
Model
Purpose
This module provides comparison logic for sorting ITestSetup objects in a list. It exists to enable flexible, multi-field sorting of test setup records with support for both ascending and descending order, abstracting the comparison rules from the view and ViewModel layers.
Public Interface
TestSetupComparer (class)
- Signature:
public class TestSetupComparer : IComparer<ITestSetup> - Description: A comparer class that defines sorting behavior for
ITestSetupinstances based on configurable field and direction.
Properties:
SortField(TestSetupFields): The field to sort by. Defaults toTestSetupFields.Name.SortAscending(bool): The sort direction. Defaults totrue. Whenfalse, the comparison operands are swapped.
Compare(ITestSetup left, ITestSetup right)
- Signature:
public int Compare(ITestSetup left, ITestSetup right) - Description