Hiya.
I have a VS2013 project containing XUnit tests with MS Fakes. Here is an example test:
Quote:[Fact]
public void Test()
{
var p = new Person();
using (ShimsContext.Create())
{
// Arrange.
const int anyAge = 23;
Tests.Unit.Fakes.ShimPerson.AllInstances.GetAgeFromDatabase = (instance) => anyAge;
var sut = new Bank();
// Act.
int age = sut.Foo();
age.Should().Be(anyAge);
}
}
NCrunch cannot execute the above test. The following error comes up:
Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException : Failed to open profiler registry key 'CLSID\{b19f184a-cc62-4137-9a6f-af0f91730165}\InprocServer32'.
My Visual Studio details are:
Microsoft Visual Studio Premium 2013
Version 12.0.30110.00 Update 1
Thanks.