17 lines
515 B
C#
17 lines
515 B
C#
using System.IO;
|
|
|
|
namespace SampleLibrary {
|
|
public static class Utils {
|
|
/// <summary>
|
|
/// Utility method to get models from local folder rather than an absolute path
|
|
/// </summary>
|
|
/// <param name="filename"></param>
|
|
/// <returns></returns>
|
|
public static string GetTestModel(string filename) {
|
|
var path = Path.Combine(Directory.GetCurrentDirectory(), "..", "..", "TestModels", filename);
|
|
return path;
|
|
|
|
}
|
|
}
|
|
}
|