You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just upgraded from version 1.6.2 to version 2.0 and a lot of my unit tests are now failing because AutoMoq seems to not take into account types that are directly registered in the container.
As an example, this test is working fine with version 1.6.2 but is failing in version 2.0. Now, obj is of type IFooProxy, just like IFoo was not registered.
[Test]
public void Test_With_My_Container()
{
var container = new UnityContainer();
var mocker = new AutoMoqer(container);
// container.Resolve<IFoo>(); // If uncommenting this line, test pass
container.RegisterType<IFoo, Foo>();
var obj = container.Resolve<IFoo>();
obj.ShouldBeType<Foo>();
}
Am I missing something ?
Thanks !
The text was updated successfully, but these errors were encountered:
I just upgraded from version 1.6.2 to version 2.0 and a lot of my unit tests are now failing because AutoMoq seems to not take into account types that are directly registered in the container.
As an example, this test is working fine with version 1.6.2 but is failing in version 2.0. Now, obj is of type IFooProxy, just like IFoo was not registered.
Am I missing something ?
Thanks !
The text was updated successfully, but these errors were encountered: