mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 15:06:26 +00:00
Fixed Test-Fixture path (hopefully?)
This commit is contained in:
parent
33f27df273
commit
51d4b19370
@ -12,6 +12,8 @@ namespace SpotifyAPI.Tests
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class TestClass
|
public class TestClass
|
||||||
{
|
{
|
||||||
|
private static readonly string FixtureDir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "../../fixtures/");
|
||||||
|
|
||||||
private Mock<IClient> _mock;
|
private Mock<IClient> _mock;
|
||||||
private SpotifyWebAPI _spotify;
|
private SpotifyWebAPI _spotify;
|
||||||
|
|
||||||
@ -28,7 +30,7 @@ namespace SpotifyAPI.Tests
|
|||||||
|
|
||||||
private static T GetFixture<T>(string file)
|
private static T GetFixture<T>(string file)
|
||||||
{
|
{
|
||||||
return JsonConvert.DeserializeObject<T>(File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory + "../../../fixtures/", file)));
|
return JsonConvert.DeserializeObject<T>(File.ReadAllText(Path.Combine(FixtureDir, file)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool ContainsValues(string str, params string[] values)
|
private static bool ContainsValues(string str, params string[] values)
|
||||||
|
Loading…
Reference in New Issue
Block a user