Stride Forums Archive

Unit Testing with Paradox?

1 posts, 1242 views, 2015-05-28 to 2015-05-28

AlistairClark (Alistair Clark) 2015-05-28 #1

Is there a way to easily unit test Paradox scripts? For example I’m looking to test that a GetMapPosition method will return the correct co-ordinates, but my class is trying to access GraphicsDevice.BackBuffer.Width which is null. Can any of this be mocked out? Or are there other better ways of doing things?