using System ;
using System.Globalization ;
using System.IO ;
using System.Linq ;
using NUnit.Framework ;
else
{
var textTemplate = File . ReadAllText ( textTemplateFilePath ) ;
var textsAreEqual = shaderString = = textTemplate ;
var textsAreEqual = string . Compare ( shaderString , textTemplate , CultureInfo . CurrentCulture , CompareOptions . IgnoreSymbols ) ;
if ( ! textsAreEqual )
if ( 0 ! = textsAreEqual )
{
var failedPath = Path . Combine ( rootPath . ToString ( ) , "Failed" ) ;
Directory . CreateDirectory ( failedPath ) ;
File . WriteAllText ( misMatchLocationResult , shaderString ) ;
File . WriteAllText ( misMatchLocationTemplate , textTemplate ) ;
}
Assert . IsTrue ( textsAreEqual ) ;
Assert . IsTrue ( textsAreEqual = = 0 ) ;
}
m_Shader = ShaderUtil . CreateShaderAsset ( shaderString ) ;