public void BrainfuckInterpreter_HelloWorld() { var interpreter = new BrainfuckInterpreter(BrainfuckExamples.BrainfuckExamples.HelloWorld); interpreter.Parse(); interpreter.Run(); Assert.Equal("Hello World!\n", _stringWriter.ToString()); }
public void BrainfuckInterpreter_SimpleAddNumbersOutput() { var interpreter = new BrainfuckInterpreter(BrainfuckExamples.BrainfuckExamples.SimpleAddNumbersOutput); interpreter.Parse(); interpreter.Run(); Assert.Equal("7", _stringWriter.ToString()); }
private static void Main() { var interpreter = new BrainfuckInterpreter(BrainfuckExamples.BrainfuckExamples.HelloWorld); interpreter.Parse(); interpreter.Run(); Console.ReadKey(); }