Exemplo n.º 1
0
        private PromiseCollection <int> GetCollection()
        {
            PromiseCollection <int> collection = new PromiseCollection <int>();

            collection.Add(new KeyValuePair <string, IPromise <int> >("first", new Promise <int>()));
            return(collection);
        }
Exemplo n.º 2
0
        public void AddTest()
        {
            PromiseCollection <int> collection = new PromiseCollection <int>();

            collection.Add("first", new Promise <int>());
            Assert.AreEqual(1, collection.Count);
        }