Skip to content

Commit

Permalink
Merge pull request MessagePack-CSharp#377 from itn3000/dctest-compila…
Browse files Browse the repository at this point in the history
…tion-fix

fix DataContractTest compilation(missing variable named serializer)
  • Loading branch information
neuecc committed Jan 29, 2019
2 parents 6bf0b97 + ca0e04e commit bebf9cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/MessagePack.Tests/DataContractTest.cs
Expand Up @@ -112,8 +112,8 @@ public void Serialize_WithVariousAttributes()
IgnoredField = 6,
};

var bin = serializer.Serialize(mc);
var mc2 = serializer.Deserialize<ClassWithPublicMembersWithoutAttributes>(bin);
var bin = MessagePackSerializer.Serialize(mc);
var mc2 = MessagePackSerializer.Deserialize<ClassWithPublicMembersWithoutAttributes>(bin);

mc2.AttributedProperty.Is(mc.AttributedProperty);
mc2.AttributedField.Is(mc.AttributedField);
Expand All @@ -123,7 +123,7 @@ public void Serialize_WithVariousAttributes()
mc2.UnattributedField.Is(0);
mc2.IgnoredField.Is(0);

serializer.ToJson(bin).Is(@"{""AttributedProperty"":1,""AttributedField"":4}");
MessagePackSerializer.ToJson(bin).Is(@"{""AttributedProperty"":1,""AttributedField"":4}");
}
}
}

0 comments on commit bebf9cb

Please sign in to comment.