Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }