Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestContext Properties type fixed to be IDictionary #563

Merged
merged 5 commits into from
Feb 9, 2019
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fixed a build failure due to TestContext signature changes
  • Loading branch information
cltshivash committed Feb 7, 2019
commit fb8ae9233ec2928f3b0f3f538254a4ac4e530f51
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ public void GetTestMethodInfoShouldSetTestContextWithCustomProperty()
new Dictionary<string, object>());

this.typeCache.GetTestMethodInfo(testMethod, testContext, false);
var customProperty = testContext.Properties.FirstOrDefault(p => p.Key.Equals("WhoAmI"));
var customProperty = ((IDictionary<string, object>)testContext.Properties).FirstOrDefault(p => p.Key.Equals("WhoAmI"));

Assert.IsNotNull(customProperty);
Assert.AreEqual("Me", customProperty.Value);
Expand Down Expand Up @@ -1009,7 +1009,7 @@ public void GetTestMethodInfoShouldNotAddDuplicateTestPropertiesToTestContext()

// Verify that the first value gets set.
object value;
Assert.IsTrue(testContext.Properties.TryGetValue("WhoAmI", out value));
Assert.IsTrue(((IDictionary<string, object>)testContext.Properties).TryGetValue("WhoAmI", out value));
Assert.AreEqual("Me", value);
}

Expand Down