Well, the line that is failing is this one:
team1.TeamColor = Color.FromArgb(255, 200, 200, 0);
Where team1 is just a POCO class with a System.Windows.Media.Color property called TeamColor. When I run the actual program this executes without error.
But when running the test this line fails, here's the full stack trace from the test runner:
Test Name: EndLastRoundEndsGame
Test FullName: GameTests.EndLastRoundEndsGame
Test Source: \GameTests.cs : line 156
Test Outcome: Failed
Test Duration: 0:00:01.4459321
Test method GameTests.EndLastRoundEndsGame threw exception:
System.InvalidProgramException: Common Language Runtime detected an invalid program.
at System.Windows.Media.Color.FromArgb(Byte a, Byte r, Byte g, Byte b)
at Data.Game..ctor() in \Game.cs:line 54
at Data.Game..ctor(Int32 numCards) in \Data\Game.cs:line 68
at Test.GameTests.MockFirstRound() in Test\GameTests.cs:line 183
at Test.GameTests.EndLastRoundEndsGame() in Test\GameTests.cs:line 158
Please let me know if I can provide any more information. It's starting to look like this isn't a bug with JustMock as much as it is with the test runner, so if you do discover anything helpful I'd greatly appreciate it, as this is causing ALL my tests to fail...