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

Understanding category attribute from adapter #1528

Merged

Conversation

abhishkk
Copy link
Contributor

@abhishkk abhishkk commented Apr 5, 2018

Part 1 of RFC:
Contains changes for understanding category attribute from adapter.

{
public enum AssemblyType
{
NativeAndManaged,
Copy link
Contributor

Choose a reason for hiding this comment

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

consider None or Unspecified ?

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.

@@ -124,5 +125,13 @@ public void TestDiscovererMetadataCtorSetsDefaultUri()

Assert.AreEqual("executor://helloworld/", metadata.DefaultExecutorUri.AbsoluteUri);
}

[TestMethod]
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a test for default case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

enum can't be null ro empty. Thus checking one test that whatever is passed is set enough.

Copy link
Contributor

@singhsarab singhsarab left a comment

Choose a reason for hiding this comment

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

:shipit:

{
public enum AssemblyType
{
NativeAndManaged,
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need NativeAndManaged, can't we ask user specify Category attribute two time?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Category attribute is not supported multiple times.
Adapter which supports both native and managed will not specify category attribute.

@abhishkk
Copy link
Contributor Author

abhishkk commented Apr 5, 2018

@dotnet-bot test this please

Copy link
Contributor

@mayankbansal018 mayankbansal018 left a comment

Choose a reason for hiding this comment

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

:shipit:

@abhishkk
Copy link
Contributor Author

abhishkk commented Apr 5, 2018

@dotnet-bot test this

@abhishkk
Copy link
Contributor Author

abhishkk commented Apr 5, 2018

@dotnet-bot test this please

1 similar comment
@abhishkk
Copy link
Contributor Author

abhishkk commented Apr 5, 2018

@dotnet-bot test this please

@abhishkk
Copy link
Contributor Author

abhishkk commented Apr 5, 2018

@dotnet-bot test this please

@abhishkk abhishkk merged commit 93ff962 into microsoft:master Apr 5, 2018
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