Try running the unit test below and you get this exception when the second mock object is created:
System.InvalidCastException: Unable to cast object of type 'TypeMock.MockObject`1[One.IOperations]' to type 'TypeMock.MockObject`1[Two.IOperations]'.
using NUnit.Framework;
using TypeMock;
namespace UnitTests
{
[TestFixture]
public class NUnitTests
{
[Test]
public void Test1()
{
MockObject<One.IOperations> mockObject1 = MockManager.MockObject<One.IOperations>();
MockObject<Two.IOperations> mockObject2 = MockManager.MockObject<Two.IOperations>();
}
}
}
namespace One
{
public interface IOperations
{
}
}
namespace Two
{
public interface IOperations
{
}
}