TRD-0006 Restructure the folder layout

This commit is contained in:
2024-03-02 08:15:28 -05:00
parent 03096f2c48
commit 1ad5e62837
8 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,30 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using Axiom.Utils;
using Axiom.Interpreter;
using System.IO;
namespace AxiomUnitTestProject
{
[TestClass]
public class ScannerTests
{
[TestMethod]
public void ScannerShouldScan()
{
List<String> codeLines = TestData.CodeLines();
foreach(String expression in codeLines)
{
BinaryWriter binaryWriter=new BinaryWriter(new MemoryStream());
SymbolTable symbolTable = new SymbolTable();
BinaryReader binaryReader = null;
binaryReader = new BinaryReader(Utility.StreamFromString(expression));
Scanner scanner = new Scanner(binaryReader, binaryWriter, symbolTable);
Console.WriteLine("Expression:\""+expression+"\"");
Assert.IsTrue(scanner.Analyze());
Console.WriteLine("**************************");
}
}
}
}