vs-unit-testing-framework
First Unit Test (VS2010 C#)
This is my first encounter with unit testing and I am trying to understand how can this concept be used on开发者_StackOverflow中文版 a simple date validation.[详细]
2023-02-10 07:19 分类:问答TransactionScope is not rolling back in MSTest test
I have the following base object in my Tests [TestClass] public abstract class TestClassBase { private TransactionScope _transactionScope;[详细]
2023-02-08 22:51 分类:问答Is it possible to get VS 2010 to build before running tests
I have a Class Library project in Visual Studio 2010 that I want to test. I have created a seperate Test project in the same solution to test it. The Test project references the Class Library project.[详细]
2023-01-28 04:29 分类:问答Running MSTest UnitTests using a MSBuild Script
Could you please guide me how to run MSTest unit tests using 开发者_高级运维an MSBuild script.you should use default configuration for running any assemblies including your unit test and this assembly[详细]
2023-01-24 05:01 分类:问答How to make VS Unit Test show the Error Message from exceptions other than UnitTestAssertException?
I\'m using VS Unit Testing Framework and Moq. When a Moq verification fails, I\'ll get a Moq.MockException. In the Test Result开发者_开发问答s window, instead of showing the helpful message inside th[详细]
2023-01-18 13:41 分类:问答How to rollback in EF4 for Unit Test TearDown?
In my research about rolling back transactions in EF4, it seems everybody refers to this blog post or offers a similar explanation. In my scenario, I\'m wanting to do this in a unit testing scenario w[详细]
2022-12-27 22:17 分类:问答Why does TestInitialize get fired for every test in my Visual Studio unit tests?
I\'m using Visual Studio 2010 Beta 2. I\'ve got a single [TestClass], which has a [TestInitialize], [TestCleanup] and a few [TestMethods].[详细]
2022-12-13 10:49 分类:问答