-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mucked up logic when run straight from VS or with an explicitly specified plugins.txt
- Loading branch information
Showing
7 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using FluentAssertions; | ||
using Mutagen.Bethesda; | ||
using Mutagen.Bethesda.Synthesis; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
using Xunit; | ||
|
||
namespace Synthesis.Bethesda.UnitTests | ||
{ | ||
public class PipelineTests | ||
{ | ||
[Fact] | ||
public void AddsImplicitMods() | ||
{ | ||
using var tmp = Utility.GetTempFolder(); | ||
|
||
var pluginPath = Path.Combine(tmp.Dir.Path, "Plugins.txt"); | ||
var dataFolder = Path.Combine(tmp.Dir.Path, "Data"); | ||
Directory.CreateDirectory(dataFolder); | ||
File.WriteAllText( | ||
Path.Combine(dataFolder, Mutagen.Bethesda.Skyrim.Constants.Skyrim.FileName), | ||
string.Empty); | ||
File.WriteAllLines(pluginPath, | ||
new string[] | ||
{ | ||
$"*{Utility.TestModKey.FileName}", | ||
$"{Utility.OverrideModKey.FileName}", | ||
}); | ||
var listings = SynthesisPipeline.Instance.GetLoadOrder( | ||
GameRelease.SkyrimSE, | ||
loadOrderFilePath: pluginPath, | ||
dataFolderPath: dataFolder).ToList(); | ||
listings.Should().HaveCount(3); | ||
listings.Should().BeEquivalentTo(new LoadOrderListing[] | ||
{ | ||
new LoadOrderListing(Mutagen.Bethesda.Skyrim.Constants.Skyrim, true), | ||
new LoadOrderListing(Utility.TestModKey, true), | ||
new LoadOrderListing(Utility.OverrideModKey, false), | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters