/// <summary> /// Returns a full path to a file or directory in the test data directory. /// </summary> /// <param name="testDataPath">The path to construct a full test data path for.</param> /// <param name="path">The path to a file or directory in the test data directory.</param> /// <returns>A full path to the file or directory from the test data directory.</returns> public static string GetTestDataPath(TestDataPath testDataPath, string path) { return(Path.Combine(GetTestDataPath(testDataPath.Path), path)); }
/// <summary> /// Returns a full path to a test data directory given the <paramref name="testDataPath"/>. /// </summary> /// <param name="testDataPath">The path to construct a full test data path for.</param> /// <returns>A full path to the test data.</returns> public static string GetTestDataPath(TestDataPath testDataPath) { return(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test-data", testDataPath.Path)); }