Example #1
0
        public void TestCopyPropertiesFrom()
        {
            var one = new FixClient.Session
            {
                OrderBehaviour = Fix.Behaviour.Initiator
            };

            var two = new FixClient.Session
            {
                OrderBehaviour = Fix.Behaviour.Acceptor
            };

            Assert.AreEqual(Fix.Behaviour.Initiator, one.OrderBehaviour);
            Assert.AreEqual(Fix.Behaviour.Acceptor, two.OrderBehaviour);

            one.CopyPropertiesFrom(two);

            Assert.AreEqual(Fix.Behaviour.Acceptor, one.OrderBehaviour);
            Assert.AreEqual(Fix.Behaviour.Acceptor, two.OrderBehaviour);
        }
Example #2
0
        public void TestCopyPropertiesFrom()
        {
            var one = new FixClient.Session(new System.Windows.Forms.Control())
            {
                OrderBehaviour = Fix.Behaviour.Initiator
            };

            var two = new FixClient.Session(new System.Windows.Forms.Control())
            {
                OrderBehaviour = Fix.Behaviour.Acceptor
            };

            Assert.AreEqual(Fix.Behaviour.Initiator, one.OrderBehaviour);
            Assert.AreEqual(Fix.Behaviour.Acceptor, two.OrderBehaviour);

            one.CopyPropertiesFrom(two);

            Assert.AreEqual(Fix.Behaviour.Acceptor, one.OrderBehaviour);
            Assert.AreEqual(Fix.Behaviour.Acceptor, two.OrderBehaviour);
        }