示例#1
0
        public void Invoke(int obj)
        {
            var src  = new QueryValue <string, int>(obj);
            var dest = new QueryEventArgs <string, int>("OnceQuery(T, U)");

            src.Request(dest);

            Assert.That(src.Value, Is.EqualTo(obj));
            Assert.That(dest.Result, Is.EqualTo(obj));
            Assert.That(dest.Cancel, Is.False);
        }
示例#2
0
        public void Invoke(string obj)
        {
            var src  = new QueryValue <string>(obj);
            var dest = QueryEventArgs.Create("OnceQuery(T)");

            src.Request(dest);

            Assert.That(src.Value, Is.EqualTo(obj));
            Assert.That(dest.Result, Is.EqualTo(obj));
            Assert.That(dest.Cancel, Is.False);
        }