Skip to content

Conversation

@vagisha-nidhi
Copy link
Contributor

@vagisha-nidhi vagisha-nidhi commented Jan 24, 2019

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.

get
{
return this.properties as IDictionary;
return this.properties as IDictionary<string, object>;
Copy link
Contributor

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.

Copy link
Contributor Author

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; }
Copy link
Contributor

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?

Copy link
Contributor

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)

Copy link
Contributor Author

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.

@acesiddhu
Copy link
Contributor

Update the Description.

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.

3 participants