cstdotnet/CSTNet.Tests/CSTHelper.cs
Tony Bark 6dea456a25
1.0.300 (#4)
- Switched to Sixam.CST namespace and marked CSTNet namespace as obsolete.
- Renumbered patch version from single to triple digits.
- Performance improvements.
2020-12-13 06:54:54 -05:00

16 lines
354 B
C#

using System;
using System.IO;
namespace Sixam.CST.Tests
{
static class CSTHelper
{
public static string CSTFile(string cst, string key)
{
var path = Path.Combine(AppContext.BaseDirectory, cst);
var file = File.ReadAllText(path);
return CaretSeparatedText.Parse(file, key);
}
}
}