单声道为Android:哪个测试框架合作框架、单声道、测试、Android

2023-09-04 10:02:15 作者:年少总有装逼梦

我创建了一个单声道为Android VS2010的项目,并添加NUnit的测试。

I have created a Mono for Android VS2010 project and added NUnit tests.

这似乎单声道为Android根据该职位从Xamarin不支持NUnit的: https://bugzilla.novell.com/show_bug.cgi?id=644813

It seems Mono for Android does not support NUnit according to this post from Xamarin: https://bugzilla.novell.com/show_bug.cgi?id=644813

是否有做运行在一个单声道的Andr​​oid项目时,任何测试框架?

Are there any testing frameworks that do run when in a Mono for Android project?

推荐答案

没有,NUnit的不工作,也没有做任何其他的框架。 monodroid和MonoTouch的的目的是提供一个.NET开发环境,可以让你在不同环境之间轻松地将业务逻辑。作为一个结果,你不能真正测试的android / ios的具体code,但你可以测试.NET通用业务逻辑code。在我写的monodroid项目,我创建3个项目的解决方案,一个是Android项目,另一个是一个.NET库,它拥有我所有的非Android特定逻辑和最后的项目是针对一个NUnit的测试库。网库。我再加入我的逻辑code文件与链接文件的Andr​​oid项目。 monodroid项目文件不能被测试,但.NET codeS文件链接到monodroid项目可以与你选择什么都框架进行测试。

no, nunit does not work nor do any other frameworks. the intent of monodroid and monotouch is to provide a .net development environment that allows you to easily port business logic between different environments. as a result you can't really test android/ios specific code, but you can test generic .net business logic code. in the monodroid projects that i write, i create 3 projects in the solution, one is the android project, another is a .net library that holds all of my non-android specific logic and the final project is a nUnit test library against the .net library. I then add my logic code files into the android project with linked files. monodroid project files can not be tested, but .net codes files linked into monodroid projects can be tested with what ever framework you choose.