chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
Did it as your adivce, Still frustrated!!! Can not run your sample code. When I use "nunit-console.exe <your-dll> " to execute test, a pop-up windows said "I am using Enterprise feature". Then the whole application cracked, just gave me a "nunit-console.exe has encountered a problem and needs to close". I am confident that this is not the problem of nunite.

:? Could you please give users an better sample to let the "try" achieve before they give up?


First try running the tests from the command line.

Program FilesTypeMock.NETTypeMock.NETmocking_on.bat
Program FilesNUnit 2.2in unit-console.exe <your-dll>

Next in Visual Studio with TestDriven.NET:
1. Verify that the Addin is loaded (You will see 'Disable TypeMock' in the Tools Menu)
2. Restart the Rocket (in the notifications area)
3. Run Tests

Remember, TypeMock has to be enabled BEFORE the testing executable is run. So if you run the GUI, you must start it after turning on mocks.

TypeMock Support Group
asked by kyue (4.6k points)

3 Answers

0 votes
Thanks for not giving up yet :-)

What you say is true, the example show features that use Enterprise features TypeMock.NET too.
There is a readme file that is attached to the examples and many comments in the example code to help understand what is happening in the code.
You could benefit by running each test separately and understanding different aspects of Mocking.
You can run the tests separately in one of the following ways:
1. by using the TestDriven.NET addin
2. by using the NUnit GUI and running just that test
3. by using the NUnit console /fixture attribute.

When you want to test Enterprise Features you can turn on these features by selecting the Demo Mode in the TypeMock Configuration. There are restrictions in this mode, but you can run the tests and see how they work.
answered by scott (32k points)
0 votes
We have fixed the examples in version 3.1, they now include Visual Studio 2003 and 2005 solutions with Nant and MSBuild scripts.
Note: The examples include enterprise features that can only run with a correct license
answered by scott (32k points)
0 votes
Thanks, that is a good news.
answered by kyue (4.6k points)