Ejemplo n.º 1
0
        public async Task TestLocalSocket()
        {
            var nvimStdio     = new NvimAPI();
            var serverAddress =
                (string)await nvimStdio.CallFunction("serverstart", new object[0]);

            var nvimLocalSocket = new NvimAPI(serverAddress);

            Assert.IsNotNull(await nvimLocalSocket.CommandOutput("version"));
        }
Ejemplo n.º 2
0
        public async Task TestTCPSocket()
        {
            var nvimStdio     = new NvimAPI();
            var serverAddress = (string)await nvimStdio.CallFunction("serverstart",
                                                                     new object[] { System.Net.IPAddress.Loopback + ":" });

            var nvimTCPSocket = new NvimAPI(serverAddress);

            Assert.IsNotNull(await nvimTCPSocket.CommandOutput("version"));
        }