-
Notifications
You must be signed in to change notification settings - Fork 289
MissingMethodException Fix #555
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
MissingMethodException Fix #555
Conversation
| get | ||
| { | ||
| return this.properties as IDictionary; | ||
| return this.properties as IDictionary<string, object>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is.properties as IDictionary<string, object [](start = 25, length = 43)
just return this.properties.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| /// Gets test properties for a test. | ||
| /// </summary> | ||
| public abstract IDictionary Properties { get; } | ||
| public abstract IDictionary<string, object> Properties { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
abstract [](start = 15, length = 8)
I am afraid if this is a breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if folks have taken a depedency in their code for this property and they expect IDict then build will fail
In reply to: 250584995 [](ancestors = 250584995)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will release a beta package and see if get any such feedback on this change.
|
Update the Description. |
When running a test project compiled for netstandard, and running in full framework throws the following error:
Error: System.MissingMethodException: Method not found: 'System.Collections.Generic.IDictionary`2<System.String,System.Object> Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.get_Properties()'..
It is expecting IDictionary`2<System.String,System.Object> hence causing run time error.