Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ internal static class TestNodePropertiesCategories
typeof(FailedTestNodeStateProperty),
typeof(ErrorTestNodeStateProperty),
typeof(TimeoutTestNodeStateProperty),
typeof(CancelledTestNodeStateProperty),
];

public static Type[] WellKnownTestNodeTestRunOutcomeFailedProperties { get; } =
[
typeof(FailedTestNodeStateProperty),
typeof(ErrorTestNodeStateProperty),
typeof(TimeoutTestNodeStateProperty),
typeof(CancelledTestNodeStateProperty),
];
}
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ public override int GetHashCode()
/// <summary>
/// Property that represents an eventual cancellation of a test node.
/// </summary>
[Obsolete("CancelledTestNodeStateProperty is obsolete. Test frameworks should throw OperationCanceledException using the cancellation token passed by Microsoft.Testing.Platform instead of using this state.")]
public sealed class CancelledTestNodeStateProperty : TestNodeStateProperty, IEquatable<CancelledTestNodeStateProperty>
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ internal static IEnumerable<object[]> FailedState()
{
yield return [new FailedTestNodeStateProperty()];
yield return [new ErrorTestNodeStateProperty()];
yield return [new CancelledTestNodeStateProperty()];
yield return [new TimeoutTestNodeStateProperty()];
}

Expand Down
Loading