Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Cannot unit test CocosSharp objects

$
0
0

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?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>