Skip to content

Commit 408548f

Browse files
committed
update GCodeWriterTest
1 parent 4bea7e8 commit 408548f

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

ReaderWriter/3rdPartyFormatAdapters/GCODE/GCodeReaderWriter/GCodeReaderWriter.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
<ItemGroup>
88
<ProjectReference Include="..\..\..\AbstractReaderWriter\AbstractReaderWriter.csproj" />
9+
<ProjectReference Include="..\..\..\OVFReaderWriter\OVFReaderWriter.csproj" />
910
</ItemGroup>
1011

1112
</Project>

ReaderWriter/3rdPartyFormatAdapters/GCODE/GCodeReaderWriter/GCodeWriter.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ You should have received a copy of the GNU Lesser General Public
3232
using System.Numerics;
3333
using System.Text;
3434
using System.Threading.Tasks;
35+
//using GCodeReaderWriter;
36+
using OpenVectorFormat.OVFReaderWriter;
3537

36-
namespace GCodeReaderWriter
38+
namespace OpenVectorFormat.GCodeReaderWriter
3739
{
3840
public class GCodeWriter : FileWriter
3941
{

ReaderWriter/UnitTests/GCodeWriterTest.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You should have received a copy of the GNU Lesser General Public
3131
using OpenVectorFormat.AbstractReaderWriter;
3232
using OpenVectorFormat.GCodeReaderWriter;
3333
using OpenVectorFormat;
34-
using GCodeReaderWriter;
34+
//using GCodeReaderWriter;
3535
using OpenVectorFormat.OVFReaderWriter;
3636
using OpenVectorFormat.ReaderWriter.UnitTests;
3737
using System.IO;
@@ -41,19 +41,21 @@ namespace UnitTests
4141
[TestClass]
4242
public class GCodeWriterTest
4343
{
44-
private string ovfFilePath = "\\bunny.ovf";
45-
private string gcodeOutputPath = "\\output.gcode";
44+
private string ovfFilePath = "C:\\Users\\sambi\\Source\\Repos\\OpenVectorFormatTools\\ReaderWriter\\UnitTests\\TestFiles\\bunny.ovf";
45+
private string gcodeOutputPath = "C:\\Users\\sambi\\Documents\\temp\\output3.gcode";
4646
private OVFFileReader ovfReader;
4747
private GCodeWriter gcodeWriter;
4848

4949
[TestInitialize]
5050
public void Setup()
5151
{
5252
Assert.IsTrue(File.Exists(ovfFilePath), "OVF file not found");
53+
5354
ovfReader = new OVFFileReader();
5455
gcodeWriter = new GCodeWriter();
5556
}
5657

58+
//[DynamicData("GCodeFiles")]
5759
[TestMethod]
5860
public void Test_OVF_To_GCode()
5961
{

0 commit comments

Comments
 (0)