File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/MessagePack.UnityClient/Assets/Scripts Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ private MessagePackSecurity()
44
44
/// </summary>
45
45
/// <param name="copyFrom">The template to copy from.</param>
46
46
protected MessagePackSecurity ( MessagePackSecurity copyFrom )
47
+ : this ( )
47
48
{
48
49
if ( copyFrom is null )
49
50
{
Original file line number Diff line number Diff line change @@ -141,6 +141,13 @@ public void EqualityComparer_ObjectFallback()
141
141
Assert. NotEqual ( eq . GetHashCode ( o ) , eq . GetHashCode ( new object ( ) ) ) ;
142
142
}
143
143
144
+ [ Fact ]
145
+ public void EqualityComparer_ObjectFallback_AfterCopyCtor( )
146
+ {
147
+ var security = MessagePackSecurity. UntrustedData . WithMaximumObjectGraphDepth ( 15 ) ;
148
+ Assert. NotNull ( security . GetEqualityComparer < object > ( ) ) ;
149
+ }
150
+
144
151
/// <summary>
145
152
/// Verifies that arbitrary other types not known to be hash safe will be rejected.
146
153
/// </summary>
You can’t perform that action at this time.
0 commit comments