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
The code example fails and there is no possibility to use default interface implementation in a mock.
voidMain(){varm=newMock<IFoo>(MockBehavior.Strict){CallBase=true};m.SetupGet(x =>x.Bar).Returns(5);// UserQuery.IFoo.Baz invocation failed with mock behavior Strict.// All invocations on the mock must have a corresponding setup.Console.WriteLine(m.Object.Baz);}publicinterfaceIFoo{intBar{get;}intBaz=>Bar+1;}
The text was updated successfully, but these errors were encountered:
The code example fails and there is no possibility to use default interface implementation in a mock.
The text was updated successfully, but these errors were encountered: