public void SimpleTest(string expected) { var model = new Unregistration { Id = "abc", Method = "ads" }; var result = Fixture.SerializeObject(model); result.Should().Be(expected); var deresult = new LspSerializer(ClientVersion.Lsp3).DeserializeObject <Unregistration>(expected); deresult.Should().BeEquivalentTo(model); }
public void SimpleTest(string expected) { var model = new Unregistration() { Id = "abc", Method = "ads" }; var result = Fixture.SerializeObject(model); result.Should().Be(expected); var deresult = JsonConvert.DeserializeObject <Unregistration>(expected); deresult.ShouldBeEquivalentTo(model); }