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