mirror of
https://github.com/AtomUI/AtomUI.git
synced 2026-10-29 07:16:33 +08:00
20 lines
570 B
C#
20 lines
570 B
C#
namespace AtomUI.Generator.Tests;
|
|
|
|
internal static class GeneratorFileTestDataLoader
|
|
{
|
|
private static readonly string TestDataPath = Path.Combine(
|
|
AppDomain.CurrentDomain.BaseDirectory,
|
|
"TestData");
|
|
|
|
public static string LoadInput(string filename)
|
|
{
|
|
var filePath = Path.Combine(TestDataPath, filename);
|
|
return File.ReadAllText(filePath);
|
|
}
|
|
|
|
public static string LoadExpected(string filename)
|
|
{
|
|
var filePath = Path.Combine(TestDataPath, filename);
|
|
return File.ReadAllText(filePath);
|
|
}
|
|
} |