Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas-Constanty committed Apr 10, 2020
1 parent 152929a commit 8382be2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Test/WillowTest.cs
Expand Up @@ -75,8 +75,6 @@ private string GetOutputName(string outputDir, string fileName)
[TestMethod]
public void ReadExtended()
{
var ws = new WillowSaveGame();

string path = Directory.GetCurrentDirectory() + @"\ReadTest\Extended";

DirectoryInfo d = new DirectoryInfo(path);//Assuming Test is your Folder
Expand All @@ -95,6 +93,7 @@ public void ReadExtended()
consoleOutput = new ConsoleOutput();
try
{
var ws = new WillowSaveGame();
ws.LoadWsg(collection.FullName);
count++;
consoleOutput.Dispose();
Expand All @@ -116,8 +115,6 @@ public void ReadExtended()
[TestMethod]
public void ReadOld()
{
var ws = new WillowSaveGame();

string path = Directory.GetCurrentDirectory() + @"\ReadTest\Vanilla";

DirectoryInfo d = new DirectoryInfo(path);//Assuming Test is your Folder
Expand All @@ -136,6 +133,7 @@ public void ReadOld()
consoleOutput = new ConsoleOutput();
try
{
var ws = new WillowSaveGame();
ws.LoadWsg(collection.FullName);
count++;
consoleOutput.Dispose();
Expand Down Expand Up @@ -172,8 +170,6 @@ public void ReadOld()
[TestMethod]
public void Write()
{
var ws = new WillowSaveGame();

string path = Directory.GetCurrentDirectory() + @"\ReadTest\Extended";

DirectoryInfo d = new DirectoryInfo(path);//Assuming Test is your Folder
Expand All @@ -192,6 +188,8 @@ public void Write()
consoleOutput = new ConsoleOutput();
try
{
var ws = new WillowSaveGame();

ws.LoadWsg(collection.FullName);
var output = outputDir.FullName + @"\" + collection.Name;
ws.SaveWsg(output);
Expand Down

0 comments on commit 8382be2

Please sign in to comment.