Remove not used parameter outputHelper from Run signatures
This commit is contained in:
Родитель
1cc5812768
Коммит
eb4d348976
|
@ -16,7 +16,6 @@ namespace EnhancedStrongName.Test {
|
|||
await Run("118_EnhancedStrongName.exe",
|
||||
new[] {"My strong key token: 79A18AF4CEA8A9BD", "My signature is valid!"},
|
||||
null,
|
||||
outputHelper,
|
||||
projectModuleAction: projectModule => {
|
||||
projectModule.SNSigKeyPath = Path.Combine(Environment.CurrentDirectory, "SignatureKey.snk");
|
||||
projectModule.SNPubSigKeyPath = Path.Combine(Environment.CurrentDirectory, "SignaturePubKey.snk");
|
||||
|
|
|
@ -23,7 +23,6 @@ namespace _123_InheritCustomAttr.Test {
|
|||
"123_InheritCustomAttr.exe",
|
||||
new[] {"Monday", "43", "1"},
|
||||
new SettingItem<Protection>("rename") {{"mode", renameMode}, {"flatten", flatten ? "True" : "False"}},
|
||||
outputHelper,
|
||||
$"_{renameMode}_{flatten}",
|
||||
l => Assert.False(l.StartsWith("[WARN]"), "Logged line may not start with [WARN]\r\n" + l));
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ namespace DynamicTypeRename.Test {
|
|||
{ "mode", renameMode },
|
||||
{ "flatten", flatten.ToString() }
|
||||
},
|
||||
outputHelper,
|
||||
$"_{renameMode}_{flatten}"
|
||||
);
|
||||
|
||||
|
|
|
@ -16,6 +16,6 @@ namespace ConstantsInlining.Test {
|
|||
public async Task ConstantInlining() =>
|
||||
await Run(new[] {"193_ConstantsInlining.exe", "193_ConstantsInlining.Lib.dll"},
|
||||
new[] {"From External"},
|
||||
new SettingItem<Protection>("constants") {{"elements", "S"}}, outputHelper);
|
||||
new SettingItem<Protection>("constants") {{"elements", "S"}});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,8 +21,7 @@ namespace SignatureMismatch.Test {
|
|||
"Dictionary count: 1",
|
||||
"[Test1] = Test2"
|
||||
},
|
||||
new SettingItem<Protection>("rename"),
|
||||
outputHelper
|
||||
new SettingItem<Protection>("rename")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace AntiTamper.Test {
|
|||
await Run("AntiTamper.exe",
|
||||
new[] {"This is a test."},
|
||||
new SettingItem<Protection>("anti tamper") {{"mode", antiTamperMode}},
|
||||
outputHelper,
|
||||
"_" + antiTamperMode);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,6 @@ namespace CompressorWithResx.Test {
|
|||
resourceProtectionMode != "none"
|
||||
? new SettingItem<Protection>("resources") {{"mode", resourceProtectionMode}}
|
||||
: null,
|
||||
outputHelper,
|
||||
$"_{compatKey}_{deriverKey}_{resourceProtectionMode}",
|
||||
packer: new SettingItem<Packer>("compressor") {{"compat", compatKey}, {"key", deriverKey}});
|
||||
|
||||
|
|
|
@ -15,13 +15,13 @@ namespace Confuser.UnitTest {
|
|||
this.outputHelper = outputHelper ?? throw new ArgumentNullException(nameof(outputHelper));
|
||||
|
||||
public async Task Run(string inputFileName, string[] expectedOutput, SettingItem<Protection> protection,
|
||||
ITestOutputHelper outputHelper, string outputDirSuffix = "", Action<string> outputAction = null, SettingItem<Packer> packer = null,
|
||||
string outputDirSuffix = "", Action<string> outputAction = null, SettingItem<Packer> packer = null,
|
||||
Action<ProjectModule> projectModuleAction = null) =>
|
||||
|
||||
await Run(new[] { inputFileName }, expectedOutput, protection, outputHelper, outputDirSuffix, outputAction, packer,
|
||||
await Run(new[] { inputFileName }, expectedOutput, protection, outputDirSuffix, outputAction, packer,
|
||||
projectModuleAction);
|
||||
|
||||
public async Task Run(string[] inputFileNames, string[] expectedOutput, SettingItem<Protection> protection, ITestOutputHelper outputHelper,
|
||||
public async Task Run(string[] inputFileNames, string[] expectedOutput, SettingItem<Protection> protection,
|
||||
string outputDirSuffix = "", Action<string> outputAction = null, SettingItem<Packer> packer = null,
|
||||
Action<ProjectModule> projectModuleAction = null) {
|
||||
|
||||
|
|
|
@ -17,8 +17,7 @@ namespace SignatureMismatch2.Test {
|
|||
await Run(
|
||||
new [] { "SignatureMismatch2.exe", "SignatureMismatch2Helper.dll" },
|
||||
new [] { "External", "External" },
|
||||
new SettingItem<Protection>("rename") { ["renPublic"] = "true" },
|
||||
outputHelper
|
||||
new SettingItem<Protection>("rename") { ["renPublic"] = "true" }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@ namespace VisualBasicRenamingResx.Test{
|
|||
public async Task ProtectAndExecuteTest() =>
|
||||
await Run("VisualBasicRenamingResx.exe",
|
||||
new[] {"Test (neutral)"},
|
||||
new SettingItem<Protection>("rename"),
|
||||
outputHelper);
|
||||
new SettingItem<Protection>("rename"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace WinFormsRenaming.Test {
|
|||
"WinFormsRenaming.dll",
|
||||
null,
|
||||
new SettingItem<Protection>("rename"),
|
||||
outputHelper,
|
||||
outputAction: message => Assert.DoesNotContain("Failed to extract binding property name in", message));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,8 +18,7 @@ namespace WpfRenaming.Test {
|
|||
await Run(
|
||||
"WpfRenaming.dll",
|
||||
null,
|
||||
null,
|
||||
outputHelper);
|
||||
null);
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", "Protection")]
|
||||
|
@ -29,7 +28,6 @@ namespace WpfRenaming.Test {
|
|||
await Run(
|
||||
"WpfRenaming.dll",
|
||||
null,
|
||||
new SettingItem<Protection>("rename"),
|
||||
outputHelper);
|
||||
new SettingItem<Protection>("rename"));
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче