diff options
Diffstat (limited to 'BCT/RegressionTests/TranslationTest/UnitTest0.cs')
-rw-r--r-- | BCT/RegressionTests/TranslationTest/UnitTest0.cs | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/BCT/RegressionTests/TranslationTest/UnitTest0.cs b/BCT/RegressionTests/TranslationTest/UnitTest0.cs index d7f2051c..9d7f9204 100644 --- a/BCT/RegressionTests/TranslationTest/UnitTest0.cs +++ b/BCT/RegressionTests/TranslationTest/UnitTest0.cs @@ -108,10 +108,25 @@ namespace TranslationTest { if (result != expected) {
string resultFile = Path.GetFullPath("TwoDBoxHeapOutput.txt");
File.WriteAllText(resultFile, result);
- Assert.Fail("Output didn't match TwoDBoxHeapHeapInput.txt: " + resultFile);
+ Assert.Fail("Output didn't match TwoDBoxHeapInput.txt: " + resultFile);
}
}
-
+
+ [TestMethod]
+ public void GeneralHeap() {
+ string dir = TestContext.DeploymentDirectory;
+ var fullPath = Path.Combine(dir, "RegressionTestInput.dll");
+ Stream resource = typeof(UnitTest0).Assembly.GetManifestResourceStream("TranslationTest.GeneralHeapInput.txt");
+ StreamReader reader = new StreamReader(resource);
+ string expected = reader.ReadToEnd();
+ var result = ExecuteTest(fullPath, new GeneralHeap());
+ if (result != expected) {
+ string resultFile = Path.GetFullPath("GeneralHeapOutput.txt");
+ File.WriteAllText(resultFile, result);
+ Assert.Fail("Output didn't match GeneralHeapInput.txt: " + resultFile);
+ }
+ }
+
}
}
\ No newline at end of file |