fixed unit test file path generation to be linux compatible.

This commit is contained in:
Keivan Beigi 2013-03-28 12:05:43 -07:00
commit b73485a58b
10 changed files with 51 additions and 47 deletions

View file

@ -184,7 +184,7 @@ namespace NzbDrone.Core.Test
public void MaxOrDefault_should_return_max_when_collection_is_not_empty()
{
//Setup
var list = new List<int> {6, 4, 5, 3, 8, 10};
var list = new List<int> { 6, 4, 5, 3, 8, 10 };
//Act
var result = list.MaxOrDefault();
@ -210,13 +210,13 @@ namespace NzbDrone.Core.Test
public void Truncate_should_truncate_strings_to_max_specified_number_of_bytes()
{
//Setup
var str = File.ReadAllText(@"Files\LongOverview.txt");
var str = ReadAllText("Files", "LongOverview.txt");
//Act
var resultString = str.Truncate(1000);
//Resolve
var result = new UTF8Encoding().GetBytes(resultString);
var result = new UTF8Encoding().GetBytes(resultString);
result.Length.Should().BeLessOrEqualTo(1000);
}