aspclassiccompiler/aspclassiccompiler/VBScriptTest/UnmanagedVBScriptTest.cs
dotneteer 1a17abff27 Added unmanaged VBScrip Test.
--HG--
rename : aspclassiccompiler/VBScriptTest/TestRunner.cs => aspclassiccompiler/VBScriptTest/VBscriptDotNetTest.cs
2011-04-14 23:27:40 -07:00

34 lines
934 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using System.IO;
namespace Dlrsoft.VBScriptTest
{
[TestFixture]
public class UnmanagedVBScriptTest
{
[Test]
public void RunTest()
{
DirectoryWalker.Walk(
Path.Combine(DirectoryWalker.AssemblyDirectory, "../../VBScripts"),
f =>
{
if (f.EndsWith(".vbs", StringComparison.InvariantCultureIgnoreCase))
{
try
{
UnmangedVBScriptHost.Run(f);
}
catch (Exception ex)
{
Assert.Fail(f + ":" + ex.Message);
}
}
}
);
}
}
}