Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit ff6bac8

Browse files
Update HttpUtilsMockTests.cs
make test "Can_Mock_UploadFile()" cross-platform
1 parent 17d77cb commit ff6bac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ServiceStack.Text.Tests/HttpUtilsMockTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void Can_Mock_Bytes_Api_responses()
5252
[Test]
5353
public void Can_Mock_UploadFile()
5454
{
55-
const string tempTextPath = @"c:\Windows\Temp\test.txt";
55+
string tempTextPath = Path.Combine (Path.GetTempPath (), "test.txt");
5656
using (File.CreateText(tempTextPath)){}
5757

5858
var fileNamesUploaded = new List<string>();
@@ -114,4 +114,4 @@ public void Can_Mock_BytesFn_Api_responses()
114114
}
115115

116116
}
117-
}
117+
}

0 commit comments

Comments
 (0)