Example #1
0
        public void Order()
        {
            var           e    = new EventOwner();
            List <string> args = new List <string>();

            e.MyEvent2 += (s, x) => args.Add("first");
            e.MyEvent2 += (s, x) => args.Add("second");

            e.RaiseMyEvent2("test");
            Assert.AreEqual("first", args[0]);
            Assert.AreEqual("second", args[1]);
        }