单元测试强命名的应用程序 [英] Unit test a application for strong naming
本文介绍了单元测试强命名的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一种情况需要在我的应用程序中添加单元测试,以验证强大的命名。
我需要对此应用程序进行单元测试,以检查当前应用程序是否具有强名称或不。我只是想开始这个是否有任何库可以添加到单元测试,这将做到这一点?我有Visual Studio 2012和使用C#4.0
解决方案
< blockquote>也许你觉得这很有用:
http://blog.codingoutloud.com/2010/03/13/three-ways-to-tell-whether-an-assembly-dl -is-strong-named / [ ^ ]
我想你可以写一些方便的包装器用于单元测试的sn.exe工具...
我认为只能通过在我的测试中使用sn.exe并匹配输出来完成。
I have a situation where I need to add unit test to my application which verifies strong naming.
I need to put a unit test to this application which would check if the current application is strongly named or not. I just want to get started with this is there any library which can be added to the unit test which would do this?I have visual studio 2012 and using C#4.0
解决方案
Maybe you find this useful:
http://blog.codingoutloud.com/2010/03/13/three-ways-to-tell-whether-an-assembly-dl-is-strong-named/[^]
I think you could write some convenient wrapper arround the sn.exe tool for use in your unit-tests...
I think it can only be done by using the sn.exe in my tests and matching the outputs.
这篇关于单元测试强命名的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文