Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Moq/ISetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public interface ISetup
// /// <exception cref="InvalidOperationException">The setup has more than one inner mock.</exception>
// [Obsolete("Use 'InnerMocks' instead.")]
// [EditorBrowsable(EditorBrowsableState.Never)]
Mock InnerMock { get; }
Mock? InnerMock { get; }

// /// <summary>
// /// Gets the inner mocks of this setup (if present and known).
Expand Down
2 changes: 1 addition & 1 deletion src/Moq/Setup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected Setup(Expression originalExpression, Mock mock, Expectation expectatio

public LambdaExpression Expression => this.expectation.Expression;

Mock ISetup.InnerMock => this.InnerMocks.SingleOrDefault();
Mock? ISetup.InnerMock => this.InnerMocks.SingleOrDefault();

public virtual IEnumerable<Mock> InnerMocks => Enumerable.Empty<Mock>();

Expand Down