I want to use CocosSharp objects in my unit tests, but it always throws me vague NotImplementedExceptions
. If I run this test:
[TestMethod]
public void MyTestCase()
{
CCPoint myPoint = new CCPoint(3, 4);
}
it throws a NotImplementedException
that originates from the constructor of CCPoint
, and the stack trace shows only that. Now, if I change it to
CCPoint myPoint = new CCPoint() { X = 3, Y = 4 };
it works. But I can't rely on tricks like this all the time. Also, if I run the code that I test from an Android project, no exceptions are thrown, it works there just fine! What it this thing then? Do you know?