Skip to content

Commit

Permalink
Regression with Verify & DefaultValue.Mock
Browse files Browse the repository at this point in the history
  • Loading branch information
stakx committed Jun 16, 2020
1 parent d5552d5 commit 39743fe
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/Moq.Tests/Regressions/IssueReportsFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3313,6 +3313,28 @@ public interface IX

#endregion

#region 1024

public class Issue1024
{
[Fact]
public void Verify_passes_when_DefaultValue_Mock_and_setup_without_any_Returns()
{
var totoMock = new Mock<IToto>() { DefaultValue = DefaultValue.Mock };
totoMock.Setup(o => o.Do()).Verifiable();

totoMock.Object.Do();

totoMock.Verify();
}

public interface IToto
{
IList<string> Do();
}
}
#endregion

// Old @ Google Code

#region #47
Expand Down

0 comments on commit 39743fe

Please sign in to comment.