public async Task Beta2to3Patch() { var NewDir = "C:\\games\\Renegade X Beta 3"; var TargetDir = "C:\\games\\Renegade X patchtest"; var ApplicationDir = "C:\\games\\Renegade X patchtest\\patch"; var PatchDir = "C:\\games\\Renegade X patchtest source"; await new RXPatcher().ApplyPatchFromWeb("file:///" + PatchDir, TargetDir, ApplicationDir, TestProgressHandlerFactory.Create(), new CancellationToken(), null); await DirectoryAssertions.IsSubsetOf(NewDir, TargetDir); }
private async Task RoundtripTest(string OldDir, string NewDir, string TargetDir, string PatchDir, string ApplicationDir) { var patchInfo = new PatchInfo { OldPath = OldDir, NewPath = NewDir, PatchPath = PatchDir, }; var builder = new RXPatchBuilder(); await builder.CreatePatchAsync(patchInfo); await new RXPatcher().ApplyPatchFromWeb("file:///" + PatchDir, TargetDir, ApplicationDir, TestProgressHandlerFactory.Create(), new CancellationToken(), null); await DirectoryAssertions.IsSubsetOf(NewDir, TargetDir); }