Skip to content

switch arguments for expected and actual in Assert.AreEquals in multiple tests#685

Merged
nohwnd merged 6 commits intomicrosoft:masterfrom
HeroMaxPower:fix-assert-args
Feb 26, 2020
Merged

switch arguments for expected and actual in Assert.AreEquals in multiple tests#685
nohwnd merged 6 commits intomicrosoft:masterfrom
HeroMaxPower:fix-assert-args

Conversation

@HeroMaxPower
Copy link
Contributor

Description

This PR is to fix some asserts in the TestPlatform.sln solution, the expected and actual are round the wrong way.

e.g.

Assert.AreEqual(aggregator.RunContextAttachments.Count, 1, "RunContextAttachments List must have data.");

should be

Assert.AreEqual(1, aggregator.RunContextAttachments.Count, "RunContextAttachments List must have data.");

Related issue

Fixes #684

@HeroMaxPower HeroMaxPower requested a review from nohwnd February 17, 2020 09:59
@nohwnd nohwnd merged commit 6815ba5 into microsoft:master Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some Asserts.AreEqual in TestFx.sln have incorrect expected and actual arguments.

2 participants