Visual Studio Professional 2019 16.6.5
JustMock 2020.2.616.1
.Net Core 3.1
How can I mock an interface with default implementations? The following test fails:
JustMock 2020.2.616.1
.Net Core 3.1
How can I mock an interface with default implementations? The following test fails:
using Telerik.JustMock;using Xunit;namespace XUnitTestProject1{ public interface IMyInterface { bool SomeCheck() => false; } public class UnitTest1 { [Fact] public void Test1() { var mock = Mock.Create<IMyInterface>(); Mock.Arrange(() => mock.SomeCheck()).Returns(true); Assert.True(mock.SomeCheck()); } }}