nunit
C# Unit Test Design Issue: How to reduce redundancy in unit test writing?
Here is my c# unit test design issue: I have one test that I want to run on some code that modifies a file. My test will run the code that modifies the file, then check the result. Pretty straight fo[详细]
2023-04-13 03:03 分类:问答Assert on something which may not be there - nullreferenceexception
Using nUnit.result is a ViewResult coming back from an MVC3 controller - it may or may not be there. This works, but smells!Is there a better way?[详细]
2023-04-13 01:46 分类:问答Why is my Test View in Visual Studio so slow?
I have VS 2010 Ultimate with ReSharper, Reflector, and SpecFlow extensions. I use SpecFlow in one of my test projects along with WebDriver for automated UI testing. I am now approaching about 400 indi[详细]
2023-04-13 01:11 分类:问答Why is my controller test not working, the view name is coming back empty
Doing a simple test to verify the view name for a controllers action: var c开发者_运维百科ontroller = new UserController();[详细]
2023-04-12 22:15 分类:问答MVC3 Testing a Create Action and passing back created object - TempData?
How to pass a successfully created object from Create action with a RedirectToAction? All looks good in the action, just can\'t reference it in the test.[详细]
2023-04-12 18:11 分类:问答Running a .net executable from an msbuild project in a platform independent way
I\'m working on a .NET library, and I want the build script to be so generic that it can run from both the MS .NET framework, and from a mono installation on a Mac/Linux machine.[详细]
2023-04-12 08:16 分类:问答NUnit testing MVC Controller returns null View
My HomeController.Index() action works (in normal operation), but under NUnit testing, the ActionResult (ViewResult) that is returned always has a null View and ViewName.[详细]
2023-04-12 05:29 分类:问答Automated control of a Telerik RadDatePicker
I\'m using开发者_JAVA百科 WatIn to create an automated test for a Web App that uses Telerik controls: my first challenge is to drive a Telerik date control - a RadDatePicker.[详细]
2023-04-11 20:47 分类:问答send email from hudson when unittest fails
I am running Selenium unittests after my hudson build. And want to use it for monitoring my websites functionality.[详细]
2023-04-11 05:07 分类:问答Unit Testing: How to break a local object dependency?
I\'ve a code like following: class B; class A { A() { } bool MethodA() { B *pB = new B(); bool bRet = pB->SomeFunction();[详细]
2023-04-11 04:24 分类:问答