-
-
Notifications
You must be signed in to change notification settings - Fork 129
Expand file tree
/
Copy pathResolvedDependency.cs
More file actions
23 lines (20 loc) · 793 Bytes
/
Copy pathResolvedDependency.cs
File metadata and controls
23 lines (20 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace TUnit.Core;
/// <summary>
/// Represents a resolved test dependency with its associated metadata.
/// This maintains the relationship between a dependency test and its configuration (e.g., ProceedOnFailure).
/// </summary>
public sealed class ResolvedDependency
{
/// <summary>
/// The resolved test that this test depends on.
/// </summary>
public required AbstractExecutableTest Test { get; init; }
/// <summary>
/// The original dependency metadata, including configuration like ProceedOnFailure.
/// </summary>
public required TestDependency Metadata { get; init; }
/// <summary>
/// Quick access to the ProceedOnFailure flag from the metadata.
/// </summary>
public bool ProceedOnFailure => Metadata.ProceedOnFailure;
}