Skip to content

Commit 85ad373

Browse files
author
Sven Erb
committed
Added simple test to get JobShell.
1 parent 9710f9c commit 85ad373

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ReaderWriter/UnitTests/GCodeTest.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,22 @@ You should have received a copy of the GNU Lesser General Public
2929
using System.Text;
3030
using System.Threading.Tasks;
3131
using OpenVectorFormat.GCodeReaderWriter;
32+
using System.IO;
3233

3334
namespace UnitTests
3435
{
3536
[TestClass]
3637
public class GCodeTest
3738
{
39+
public static DirectoryInfo dir = new DirectoryInfo(Path.Combine(Directory.GetCurrentDirectory(), "TestFiles/gcode"));
3840
[TestMethod]
3941
public void TestGetJobShell()
4042
{
4143
GCodeReader reader = new GCodeReader();
42-
string filename = "to implement";
44+
string filename = Directory.GetCurrentDirectory() + "/pumpkin_basic.gcode";
4345
reader.OpenJob(filename);
4446
var jobShell = reader.JobShell;
47+
Assert.IsNotNull(jobShell);
4548
}
4649
}
4750
}

0 commit comments

Comments
 (0)