-
Notifications
You must be signed in to change notification settings - Fork 323
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
Understanding category attribute from adapter #1528
Conversation
{ | ||
public enum AssemblyType | ||
{ | ||
NativeAndManaged, |
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.
consider None or Unspecified ?
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.
@@ -124,5 +125,13 @@ public void TestDiscovererMetadataCtorSetsDefaultUri() | |||
|
|||
Assert.AreEqual("executor://helloworld/", metadata.DefaultExecutorUri.AbsoluteUri); | |||
} | |||
|
|||
[TestMethod] |
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.
Add a test for default case
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.
enum can't be null ro empty. Thus checking one test that whatever is passed is set enough.
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.
{ | ||
public enum AssemblyType | ||
{ | ||
NativeAndManaged, |
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.
do we need NativeAndManaged, can't we ask user specify Category attribute two time?
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.
Category attribute is not supported multiple times.
Adapter which supports both native and managed will not specify category attribute.
@dotnet-bot test this please |
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.
@dotnet-bot test this |
@dotnet-bot test this please |
1 similar comment
@dotnet-bot test this please |
@dotnet-bot test this please |
Part 1 of RFC:
Contains changes for understanding category attribute from adapter.