English 中文(简体)
installing asp.mvc 2 beta nunit project templates untrusted component error
原标题:

I ve been trying to get nunit 2.5 to work with mvc 2 (VS2008) after following some guides and updating registries. I though I was done. I can select nunit when choosing my testing frame work but there is no test project created. When I create a new mvcapplication.nunit.tests template it fails with the error.

Error: this template attempted to load an untrusted component Microsoft.VisualStudio.Web.Extensions , Version 9.0.0.0 Culture=neutral, PublicKeyToken=31bf3856ad364e35

I m a little lost as to where to find the component and how to make it trusted.

问题回答

I think the best answer at this point is to change the problem...

Use Visual Studio 2010, the MVC3 platform and this plugin via nuget

https://nuget.org/packages/nunit





相关问题
How do I ignore a test based on another test in NUnit?

I m writing some NUnit tests for database operations. Obviously, if Add() fails, then Get() will fail as well. However, it looks deceiving when both Add() and Get() fail because it looks like there s ...

result.viewname is always string.empty

I cannot seem to return the result.ViewName for use in Nunit tests as it always returns string.empty. I have explicitly set the name of the view inside my controller and would expect the test to pick ...

C#: How to test a basic threaded worker class

I m dipping my toes in how to test multi-threaded stuff, but not quite sure how to get started. I m sure I will figure more stuff out easier if I could just get stuff going, so I was wondering if ...

Selenium Grid with parallel testing using C#/NUnit

I ve got several unit tests written with NUnit that are calling selenium commands. I ve got 2 win2k3 server boxes setup, one is running selenium grid hub along with 2 selenium rc s. The other box is ...

Code coverage with nUnit? [closed]

Is there a way to see the code coverage when using nUnit? I know there s such a feature in Visual Studio, but can you use it with nUnit or only with the built-in vs unit tests?

Unit testing database-dependent Window services

We have a set of services in .NET 3.5C# and WCF. The NUnit tests need the services to be running and listening for requests. The services need an updated SQL database to be ready for connection. ...

TeamCity NUnit test result visualisation

Is there any way to produce visual results of NUnit tests from within TeamCity s "Tests" tab, currently my NAnt script outputs an .xml file of the results using the following task: <nunit2 ...

热门标签