Skip to content

Commit

Permalink
Add program counter property to Program to facilliate unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgwelch committed Mar 23, 2012
1 parent f7cbaec commit 3838a8d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions csharp/BrainmessShort/Program.cs
Expand Up @@ -37,6 +37,14 @@ public void JumpBackward()
{
pc = program.FindMatch(pc - 1);
}

public int ProgramCounter
{
get
{
return pc;
}
}
}
}

0 comments on commit 3838a8d

Please sign in to comment.