public CompositorData(CompositorData otherData)
    {
        red   = otherData.red;
        green = otherData.green;
        blue  = otherData.blue;
        alpha = otherData.alpha;

        textureWidth  = otherData.textureWidth;
        textureHeight = otherData.textureHeight;
        path          = otherData.path;
    }
Beispiel #2
0
        public virtual void CompositeChannel()
        {
            int expected = 3;

            using (IChannel <int> c = new mq.Channel <int>("test-CompositeChannel" + Salt))
                using (IChannel <string> x = new CompositeChannel <string>(
                           new FuncChannelInputAdapter <string, int>(c, p => Convert.ToInt32(p)),
                           new FuncChannelOutputAdapter <int, string>(c, p => p.ToString())))
                {
                    Task.Factory.StartNew(() =>
                    {
                        Thread.Sleep(Timeblok);
                        x.Write(expected.ToString());
                    });

                    Assert.AreEqual(expected.ToString(), x.Read());
                }
        }