diff --git a/SpotifyAPI.Tests/TestClass.cs b/SpotifyAPI.Tests/TestClass.cs index 63417487..25815a29 100644 --- a/SpotifyAPI.Tests/TestClass.cs +++ b/SpotifyAPI.Tests/TestClass.cs @@ -12,6 +12,8 @@ namespace SpotifyAPI.Tests [TestFixture] public class TestClass { + private static readonly string FixtureDir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "../../fixtures/"); + private Mock _mock; private SpotifyWebAPI _spotify; @@ -28,7 +30,7 @@ namespace SpotifyAPI.Tests private static T GetFixture(string file) { - return JsonConvert.DeserializeObject(File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory + "../../../fixtures/", file))); + return JsonConvert.DeserializeObject(File.ReadAllText(Path.Combine(FixtureDir, file))); } private static bool ContainsValues(string str, params string[] values)