Trying new method of organizing tests so path's are system independent.

This commit is contained in:
Harrison Deng 2020-02-29 14:14:35 -05:00
parent 04cb27d596
commit 08ef6a3a51
2 changed files with 10 additions and 2 deletions

View File

@ -10,7 +10,7 @@ namespace RecrownedGTK.Tests {
using (StreamReader reader = new StreamReader(Utilities.ReadEmbeddedFile("RecrownedGTK.Graphics.Render.Shaders.default.vert"))) {
content = reader.ReadToEnd();
}
Assert.AreEqual(content, File.ReadAllText("RecrownedGTK.Tests/assets/default.vert"));
Assert.AreEqual(File.ReadAllText("assets/default.vert").Replace("\r", ""), content.Replace("\r", ""));
}
}
}

View File

@ -1,4 +1,12 @@
#!/bin/sh
#Tests
mkdir -p TestFiles
TestFiles/NUnit.Runners/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe "RecrownedGTK.Tests/RecrownedGTK.Tests.csproj" "RecrownedGTK.Tools.Tests/RecrownedGTK.Tools.Tests.csproj" --result=nunit3 --work="TestFiles"
cd RecrownedGTK.Tests
TestFiles/NUnit.Runners/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe "RecrownedGTK.Tests.csproj" --result=nunit3 --work="TestFiles"
cd ..
mv TestFiles/nunit3 TestFiles/RecrownedGTK.Tests
cd RecrownedGTK.Tools.Tests
TestFiles/NUnit.Runners/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe "RecrownedGTK.Tools.Tests.csproj" --result=nunit3 --work="TestFiles"
cd ..
mv TestFiles/nunit3 TestFiles/RecrownedGTK.Tools.Tests