Skip to content

Commit

Permalink
Remove backwards compat tests for <20
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Dec 4, 2024
1 parent f3b81d5 commit fc7706b
Showing 1 changed file with 2 additions and 38 deletions.
40 changes: 2 additions & 38 deletions Spriggit.Tests.Windows/ConstructEntryPointTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,43 +109,7 @@ await entryPoint.Deserialize(
[Theory, MutagenModAutoData(GameRelease.SkyrimSE, FileSystem: TargetFileSystem.Real)]
public async Task TypicalExisting(Payload payload)
{
var ident = new PackageIdentity("Spriggit.Yaml.Skyrim", new NuGetVersion(0, 18, 0));
using var tmp = CreateDirFor();
var identFolder = Path.Combine(tmp.Dir, ident.ToString());
await payload.PreparePluginFolder.Prepare(ident, CancellationToken.None, identFolder);
using var entryPt = await payload.Sut.ConstructFor(tmp.Dir, ident, CancellationToken.None);
entryPt.Should().NotBeNull();
await payload.RunPassthrough(entryPt!, ident);
}

[Theory, MutagenModAutoData(GameRelease.SkyrimSE, FileSystem: TargetFileSystem.Real)]
public async Task Version17(Payload payload)
{
var ident = new PackageIdentity("Spriggit.Yaml.Skyrim", new NuGetVersion(0, 17, 0));
using var tmp = CreateDirFor();
var identFolder = Path.Combine(tmp.Dir, ident.ToString());
await payload.PreparePluginFolder.Prepare(ident, CancellationToken.None, identFolder);
using var entryPt = await payload.Sut.ConstructFor(tmp.Dir, ident, CancellationToken.None);
entryPt.Should().NotBeNull();
await payload.RunPassthrough(entryPt!, ident);
}

[Theory, MutagenModAutoData(GameRelease.SkyrimSE, FileSystem: TargetFileSystem.Real)]
public async Task Version16(Payload payload)
{
var ident = new PackageIdentity("Spriggit.Yaml.Skyrim", new NuGetVersion(0, 16, 0));
using var tmp = CreateDirFor();
var identFolder = Path.Combine(tmp.Dir, ident.ToString());
await payload.PreparePluginFolder.Prepare(ident, CancellationToken.None, identFolder);
using var entryPt = await payload.Sut.ConstructFor(tmp.Dir, ident, CancellationToken.None);
entryPt.Should().NotBeNull();
await payload.RunPassthrough(entryPt!, ident);
}

[Theory, MutagenModAutoData(GameRelease.SkyrimSE, FileSystem: TargetFileSystem.Real)]
public async Task Version15(Payload payload)
{
var ident = new PackageIdentity("Spriggit.Yaml.Skyrim", new NuGetVersion(0, 15, 0));
var ident = new PackageIdentity("Spriggit.Yaml.Skyrim", new NuGetVersion(0, 20, 0));
using var tmp = CreateDirFor();
var identFolder = Path.Combine(tmp.Dir, ident.ToString());
await payload.PreparePluginFolder.Prepare(ident, CancellationToken.None, identFolder);
Expand All @@ -166,7 +130,7 @@ public async Task PackageDoesNotExist(Payload payload)
[Theory, MutagenModAutoData(GameRelease.SkyrimSE, FileSystem: TargetFileSystem.Real)]
public async Task PluginFolderMalformedShouldRetry(Payload payload)
{
var ident = new PackageIdentity("Spriggit.Yaml.Skyrim", new NuGetVersion(0, 18, 0));
var ident = new PackageIdentity("Spriggit.Yaml.Skyrim", new NuGetVersion(0, 20, 0));
using var tmp = CreateDirFor();
var identFolder = Path.Combine(tmp.Dir, ident.ToString());
Directory.CreateDirectory(identFolder);
Expand Down

0 comments on commit fc7706b

Please sign in to comment.