- Build system optimizations - Extended ProjectConverter: DX and SharpDX assemblies are now removed from linux projects to prevent errors - Fixed a bunch of compiler warnings - Removed DX11MetroShaderGenerator assembly. It is now included in ANX.Framework.Content.Pipeline - Removed HLSLParser assembly. It is now included in ANX.Framework.Content.Pipeline. - Removed shader parser from GL3-RenderSystem. It is now included in ANX.Framework.Content.Pipeline. - Removed RenderSystem dependencies from StockShaderCodeGenerator (sscg) tool
33 lines
923 B
C#
33 lines
923 B
C#
using System;
|
|
using NUnit.Framework;
|
|
using ANX.Framework.Content.Pipeline.Helpers.HLSLParser;
|
|
|
|
// This file is part of the ANX.Framework created by the
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
// For details see: http://anxframework.codeplex.com/license
|
|
|
|
namespace ANX.Framework.TestCenter.HLSLParser
|
|
{
|
|
public static class ParseTextWalkerTests
|
|
{
|
|
[Test]
|
|
public static void TestCreateTextWalker()
|
|
{
|
|
string text = "Testtext";
|
|
ParseTextWalker walker = new ParseTextWalker(text);
|
|
|
|
Assert.AreEqual(walker.Text, text);
|
|
}
|
|
|
|
[Test]
|
|
public static void TestSeeking()
|
|
{
|
|
string text = "Testtext";
|
|
ParseTextWalker walker = new ParseTextWalker(text);
|
|
|
|
walker.Seek(4);
|
|
Assert.AreEqual(walker.Text, "text");
|
|
}
|
|
}
|
|
}
|