public void SimpleTest(string expected) { var model = new ApplyWorkspaceEditResponse { Applied = true, }; var result = Fixture.SerializeObject(model); result.Should().Be(expected); var deresult = new Serializer(ClientVersion.Lsp3).DeserializeObject <ApplyWorkspaceEditResponse>(expected); deresult.Should().BeEquivalentTo(model); }
public void SimpleTest(string expected) { var model = new ApplyWorkspaceEditResponse() { Applied = true, }; var result = Fixture.SerializeObject(model); result.Should().Be(expected); var deresult = JsonConvert.DeserializeObject <ApplyWorkspaceEditResponse>(expected); deresult.ShouldBeEquivalentTo(model); }