Esempio n. 1
0
        public void AllOutputInSpecifiedDecoration()
        {
            var decorations = typeof(Decorations)
                              .GetRuntimeFields()
                              .Select(x => new { x.Name, Value = x.GetRawConstantValue() });

            foreach (var c in decorations)
            {
                var o = new OutputChain(99);
                o.GetType().GetMethod(c.Name).Invoke(o, new object[0]);
                o.Text("input").Should().Be($"\u001b[99m\u001b[{c.Value}minput\u001b[0m");
            }
        }
Esempio n. 2
0
 public void Send(Packet packet)
 {
     OutputChain?.Send(packet);
 }