2020-02-22 05:05:11 +00:00
|
|
|
using NUnit.Framework;
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
namespace RecrownedGTK.Tests {
|
|
|
|
[TestFixture]
|
|
|
|
public class UtilitiesTest {
|
|
|
|
[Test]
|
|
|
|
public void TestReadEmbeddedStream() {
|
|
|
|
string content;
|
|
|
|
using (StreamReader reader = new StreamReader(Utilities.ReadEmbeddedFile("RecrownedGTK.Graphics.Render.Shaders.default.vert"))) {
|
|
|
|
content = reader.ReadToEnd();
|
|
|
|
}
|
2020-02-23 08:35:33 +00:00
|
|
|
Assert.AreEqual(content, File.ReadAllText("RecrownedGTK.Tests/Assets/default.vert"));
|
2020-02-22 05:05:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|