-
-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1275 from stakx/records
Upgrade DynamicProxy to version 5.1.0 for better `record` type support
- Loading branch information
Showing
4 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) 2007, Clarius Consulting, Manas Technology Solutions, InSTEDD, and Contributors. | ||
// All rights reserved. Licensed under the BSD 3-Clause License; see License.txt. | ||
|
||
using Xunit; | ||
|
||
namespace Moq.Tests | ||
{ | ||
public class RecordsFixture | ||
{ | ||
[Fact] | ||
public void Can_mock_EmptyRecord() | ||
{ | ||
_ = new Mock<EmptyRecord>().Object; | ||
} | ||
|
||
[Fact] | ||
public void Can_mock_DerivedEmptyRecord() | ||
{ | ||
_ = new Mock<DerivedEmptyRecord>().Object; | ||
} | ||
|
||
public record EmptyRecord | ||
{ | ||
} | ||
|
||
public record DerivedEmptyRecord : EmptyRecord | ||
{ | ||
} | ||
} | ||
} |