Skip to content

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Jun 19, 2025

Closes #1377

Related to #1285

@Youssef1313 Youssef1313 changed the base branch from main to dev/v4 June 19, 2025 11:06
@Youssef1313 Youssef1313 changed the title Dev/ygerges/testcontext Change TestContext.Properties to use generic IDictionary Jun 19, 2025
@Youssef1313
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Youssef1313 Youssef1313 force-pushed the dev/ygerges/testcontext branch 2 times, most recently from abac336 to dc21d28 Compare June 19, 2025 12:25
@Youssef1313 Youssef1313 force-pushed the dev/ygerges/testcontext branch from dc21d28 to f29ebd9 Compare June 19, 2025 13:23
Comment on lines 71 to 73
Verify(testContext.Context.Properties.ContainsKey(properties.ToArray()[0].Key));

Verify(testContext.Context.Properties.Contains(properties.ToArray()[0]!));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we simplify the ToArray()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a simplification that came to mind. Is it better?

@Evangelink Evangelink merged commit 5ac2246 into dev/v4 Jun 20, 2025
8 checks passed
@Evangelink Evangelink deleted the dev/ygerges/testcontext branch June 20, 2025 12:16
@microsoft-github-policy-service microsoft-github-policy-service bot added the Area: MSTest Issues with MSTest that are not specific to more refined area (e.g. analyzers or assertions) label Jun 20, 2025
@Youssef1313 Youssef1313 added this to the 4.0.0 milestone Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: MSTest Issues with MSTest that are not specific to more refined area (e.g. analyzers or assertions) Breaking ‼️
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update TestContext.Properties return type to IDictionary<string, object>
2 participants