public void AddPlugin()
        {
            int count = Server.Plugins.Count;
            TcpAppServerSamplePlugin sample = new TcpAppServerSamplePlugin()
            {
                Alias = "Sample"
            };

            Server.AddPlugin(sample);
            TcpAppCommandResult result = Client.ExecuteCommand("Plugins?");

            Assert.AreEqual(TcpAppCommandStatus.OK, result.Status);
            Assert.IsTrue(result.ReturnMessage.Contains("Sample"));

            Server.DisposePlugin(sample);
            Assert.AreEqual(count, Server.Plugins.Count);
        }
Beispiel #2
0
        public void AddPlugin()
        {
            TcpAppServerSamplePlugin sample = new TcpAppServerSamplePlugin()
            {
                Alias = "Sample"
            };

            Server.AddPlugin(sample);
            TcpAppCommandResult result = Client.ExecuteCommand("Objects?");

            Assert.AreEqual(TcpAppCommandStatus.OK, result.Status);
            Assert.IsTrue(result.ReturnMessage.Contains("Sample"));
        }