A quick follow up. My college installed NCover, and get the same error:
Invalid NCover coverage xml file: c:lablalaTestDriven.NET 2.0CoverageSolutionNameCoverage0.xml
This is the error I get in NUnit gui:
RS_CustomerTests.RS_CustomerServiceTests.GetAllCustomers_GetsCustomers_ClosesProxy:
TypeMock.TypeMockException :
*** Typemock Isolator is not currently enabled.
To enable do one of the following:
* To run Typemock Isolator as part of an automated process you can:
- run tests via TMockRunner.exe command line tool
- use 'TypeMockStart' tasks for MSBuild or NAnt
* To work with Typemock Isolator inside Visual Studio.NET:
set Tools->Enable Typemock Isolator from within Visual Studio
For more information consult the documentation (see 'Running' topic)
This is the error I get (not my college) when running tests using TestDriven:
Error 1 TestCase 'RS_CustomerTests.RS_CustomerServiceTests.GetAllCustomers_GetsAllCustomers_ReturnsListOfCustomers'
failed: System.AccessViolationException : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.ServiceModel.Description.ConfigLoader.CheckAccess(IConfigurationContextProviderInternal element)
at System.ServiceModel.Description.ConfigLoader.LookupChannel(String configurationName, String contractName, Boolean wildcard)
at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName)
at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
at System.ServiceModel.EndpointTrait`1.CreateChannelFactory()
at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
at System.ServiceModel.ClientBase`1..ctor()
at RS_Customer.CustomerServiceReference.CustomerServiceClient..ctor() in D:_Development_Optimalt ProduksjonssystemMainSourceRouting ServicesRS_CustomerRS_CustomerService ReferencesCustomerServiceReferenceReference.cs:line 4001
at RS_Customer.RS_CustomerService.GetAllCustomers() in D:_Development_Optimalt ProduksjonssystemMainSourceRouting ServicesRS_CustomerRS_CustomerRS_CustomerService.cs:line 26
at RS_CustomerTests.RS_CustomerServiceTests.GetAllCustomers_GetsAllCustomers_ReturnsListOfCustomers() in D:_Development_Optimalt ProduksjonssystemMainSourceRouting ServicesRS_CustomerRS_CustomerTestsRS_CustomerServiceTests.GetAllCustomers.cs:line 22
at TypeMock.MockManager.a(String A_0, String A_1, Object A_2, Object A_3, Boolean A_4, Object[] A_5)
at TypeMock.InternalMockManager.getReturn(Object that, String typeName, String methodName, Object methodParameters, Boolean isInjected)
at RS_CustomerTests.RS_CustomerServiceTests.GetAllCustomers_GetsAllCustomers_ReturnsListOfCustomers() in D:_Development_Optimalt ProduksjonssystemMainSourceRouting ServicesRS_CustomerRS_CustomerTestsRS_CustomerServiceTests.GetAllCustomers.cs:line 16 D:_Development_Optimalt ProduksjonssystemMainSourceRouting ServicesRS_CustomerRS_CustomerService ReferencesCustomerServiceReferenceReference.cs 4001