Skip to content

Commit bebf9cb

Browse files
authored
Merge pull request MessagePack-CSharp#377 from itn3000/dctest-compilation-fix
fix DataContractTest compilation(missing variable named serializer)
2 parents 6bf0b97 + ca0e04e commit bebf9cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/MessagePack.Tests/DataContractTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ public void Serialize_WithVariousAttributes()
112112
IgnoredField = 6,
113113
};
114114

115-
var bin = serializer.Serialize(mc);
116-
var mc2 = serializer.Deserialize<ClassWithPublicMembersWithoutAttributes>(bin);
115+
var bin = MessagePackSerializer.Serialize(mc);
116+
var mc2 = MessagePackSerializer.Deserialize<ClassWithPublicMembersWithoutAttributes>(bin);
117117

118118
mc2.AttributedProperty.Is(mc.AttributedProperty);
119119
mc2.AttributedField.Is(mc.AttributedField);
@@ -123,7 +123,7 @@ public void Serialize_WithVariousAttributes()
123123
mc2.UnattributedField.Is(0);
124124
mc2.IgnoredField.Is(0);
125125

126-
serializer.ToJson(bin).Is(@"{""AttributedProperty"":1,""AttributedField"":4}");
126+
MessagePackSerializer.ToJson(bin).Is(@"{""AttributedProperty"":1,""AttributedField"":4}");
127127
}
128128
}
129129
}

0 commit comments

Comments
 (0)