public void SimpleTest(string expected)
        {
            var model  = new ServerNotInitialized();
            var result = Fixture.SerializeObject(model);

            result.Should().Be(expected);

            var deresult = new Serializer(ClientVersion.Lsp3).DeserializeObject <RpcError>(expected);

            deresult.Should().BeEquivalentTo(model);
        }
Пример #2
0
        public void SimpleTest(string expected)
        {
            var model = new CancelParams()
            {
                Id = "123"
            };
            var result = Fixture.SerializeObject(model);

            result.Should().Be(expected);

            var deresult = new OmniSharp.Extensions.LanguageServer.Protocol.Serialization.Serializer(ClientVersion.Lsp3).DeserializeObject <CancelParams>(expected);

            deresult.Should().BeEquivalentTo(model);
        }