-
Notifications
You must be signed in to change notification settings - Fork 262
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
Add support for unit testing multiple extensions #434
Conversation
@@ -46,10 +57,13 @@ public string[] BuildAndQuery(Action<string[]> buildFunc, bool validate, params | |||
"-intermediateFolder", intermediateFolder, | |||
}; | |||
|
|||
if (this.ExtensionType != null) | |||
if (null != this.ExtensionType) |
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.
Yoda comparisons aren't needed in managed code. (They're still officially style for WiX C code, however.)
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.
thanks for the tip
this.OutputFile = outputFile ?? "test.msi"; | ||
} | ||
|
||
public Builder(string sourceFolder, Type[] extensionType , string[] bindPaths = null, string outputFile = null) |
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.
Extra space before comma.
@@ -18,7 +29,7 @@ public Builder(string sourceFolder, Type extensionType = null, string[] bindPath | |||
|
|||
public string[] BindPaths { get; set; } | |||
|
|||
public Type ExtensionType { get; set; } | |||
public Type[] ExtensionType { get; set; } |
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.
Make this plural.
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.
updated
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.
Couple of minor tweaks.
7ca7485
to
6c66dd3
Compare
Added a constructor that takes an array of types, so integration between multiple extensions can be tested.
Fixed an error that showed up after adding the new constructor, because passing
null
as the 2nd argument was ambiguous.Example package file:
Example unit test file: