Skip to content

Commit 6518704

Browse files
committed
Changed file paths to use forward slash
Hopefully fixes test errors on mono
1 parent a0dc034 commit 6518704

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

BencodeNET.Tests/BencodeTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public class BencodeTests
1111
[Fact]
1212
public void TorrentFileDecodeEncodeIsEqual()
1313
{
14-
const string originalFile = @"Files\ubuntu-14.10-desktop-amd64.iso.torrent";
15-
const string newFile = @"Files\ubuntu-14.10-desktop-amd64.iso.test.torrent";
14+
const string originalFile = @"Files/ubuntu-14.10-desktop-amd64.iso.torrent";
15+
const string newFile = @"Files/ubuntu-14.10-desktop-amd64.iso.test.torrent";
1616

1717
using (var streamRead = File.OpenRead(originalFile))
1818
{
@@ -32,7 +32,7 @@ public void TorrentFileDecodeEncodeIsEqual()
3232
[Fact]
3333
public void Decode_TorrentFile_FromPath()
3434
{
35-
const string path = @"Files\ubuntu-14.10-desktop-amd64.iso.torrent";
35+
const string path = @"Files/ubuntu-14.10-desktop-amd64.iso.torrent";
3636

3737
TorrentFile actual;
3838
TorrentFile expected;
@@ -49,7 +49,7 @@ public void Decode_TorrentFile_FromPath()
4949
[Fact]
5050
public void Decode_TorrentFile_FromStream()
5151
{
52-
const string path = @"Files\ubuntu-14.10-desktop-amd64.iso.torrent";
52+
const string path = @"Files/ubuntu-14.10-desktop-amd64.iso.torrent";
5353

5454
TorrentFile actual;
5555
TorrentFile expected;

BencodeNET.Tests/TorrentFileTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class TorrentFileTests
1010

1111
public TorrentFileTests()
1212
{
13-
const string path = @"Files\ubuntu-14.10-desktop-amd64.iso.torrent";
13+
const string path = @"Files/ubuntu-14.10-desktop-amd64.iso.torrent";
1414

1515
torrent = Bencode.DecodeTorrentFile(path);
1616
}

0 commit comments

Comments
 (0)