public void CodeGenerator_ShouldFillInAddressOfLabelsCorrectly() { // Arrange var tacs = new Tacs() { Tac.Init(0), Tac.Goto("label0"), Tac.PrintValue(1), Tac.Label("label0", null), Tac.PrintValue(2), Tac.Halt() }; var output = new CodeGenerator().Generate(tacs); // Act var tinyOut = new TinyMachine(ExePath, TestFilePath).Execute(output); // Assert Assert.That(tinyOut, Is.EqualTo(new[] { "2" }), tinyOut.ToString()); }