Merge remote-tracking branch 'origin/fix810_1.9' into fix808_v1.9
This commit is contained in:
Коммит
7ebae83293
|
@ -56,6 +56,7 @@ namespace MessagePack
|
|||
/// </summary>
|
||||
/// <param name="copyFrom">The template to copy from.</param>
|
||||
protected MessagePackSecurity(MessagePackSecurity copyFrom)
|
||||
: this()
|
||||
{
|
||||
if (copyFrom is null)
|
||||
{
|
||||
|
|
|
@ -141,6 +141,13 @@ public class MessagePackSecurityTests
|
|||
Assert.NotEqual(eq.GetHashCode(o), eq.GetHashCode(new object()));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void EqualityComparer_ObjectFallback_AfterCopyCtor()
|
||||
{
|
||||
var security = MessagePackSecurity.UntrustedData.WithMaximumObjectGraphDepth(15);
|
||||
Assert.NotNull(security.GetEqualityComparer<object>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies that arbitrary other types not known to be hash safe will be rejected.
|
||||
/// </summary>
|
||||
|
|
Загрузка…
Ссылка в новой задаче