xunit.net
Faking/mocking an interface gives "no default constructor" error, how can that be?
I\'m trying to write a unit test of a repository implementation. The repository uses RavenDB as a database. For the unit tests, I would like to mock the RavenDB parts. In order to create the mocks (fa[详细]
2023-04-09 01:58 分类:问答xUnit.net does not capture console output
I just started test开发者_开发技巧ing xUnit.net, but it doesn\'t seem to capture any output (Console, Debug, Trace), as I would have expected.[详细]
2023-03-29 20:48 分类:问答How to run F# Silverlight Library project holding xUnit.net Contrib based unit tests?
I am unaware of开发者_如何学JAVA any project templates for F# Silverlight 4 unit tests (I searched Online for templates through Add Project), so I am using the standard F# Silverlight Library project[详细]
2023-03-28 03:28 分类:问答How to pass string arrays to Theory tests using PropertyData
I have a test method with the following signature: [Theory] [PropertyData(\"MyTestData\")] public void ProcessLines_validLines_doStuff(string[] lines)[详细]
2023-03-25 05:31 分类:问答Run NUnit Test cases using xUnit Test
I want th开发者_Python百科e ability to run NUnit tests from xUnit using somehting like xunit.nunit.dll.There was a RunWithAttribute in a sample which did just that, but it\'s no longer on trunk. There[详细]
2023-03-18 19:45 分类:问答How to write a simple WP7 unit test using xUnitContrib?
I\'m working from the XunitContrib codeplex page and toward the bottom it lists these steps For Windows Phone 7[详细]
2023-03-16 20:10 分类:问答How does xUnit runner handle static methods w/static class constructor?
If I have a class with static Facts (test methods) and the class has a static constructor, is the constructor called for each 开发者_C百科Fact or only once for all Facts in a class?I guess it depends[详细]
2023-03-10 02:06 分类:问答different mock objects to compare objects in unit tests
I have Equals method tha开发者_如何学Pythont I am trying to tests. this method return true if object passed to is is same as this object.[详细]
2023-03-10 01:00 分类:问答Not able to debug unit tests in visual studio
I have the following xUnit unit test that is throwing nullReferenceException. So I decided to debug. However, when I deb开发者_如何学Goug my test fails before even it hits the first break point.[详细]
2023-03-09 22:48 分类:问答Help Configuring Associations in Castle Active Record in case of association table
I have tables like Users (UserId,Username,Password,CreatedOn,CreatedBy) Roles (RoleId,RoleName,Description,CreatedOn,CreatedBy)[详细]
2023-03-06 02:24 分类:问答