Esempio n. 1
0
        public void TestFailDoesNotAllowThen()
        {
            promise
            .Then(NoArgCallback)
            .Fail(FailCallback)
            .Progress(ProgressCallback);


            promise.ReportFail(new Exception(exceptionStr));
            promise.Then(NoArgCallbackTwo);

            Assert.AreEqual(0, promise.ListenerCount());
        }
Esempio n. 2
0
        public void TestCannotAddListenerTwiceFour()
        {
            promiseFourArg
            .Then(FourArgCallback)
            .Then(FourArgCallback);

            Assert.AreEqual(1, promiseFourArg.ListenerCount());
        }