public void Reject_method_should_call_promise_reject_exactly_once()
        {
            Exception exc = new Exception();

            var promiseMock          = new PromiseMock();
            var abortablePromiseMock = new AbortablePromiseMock();

            Sailor d = new Sailor(promiseMock, abortablePromiseMock);

            d.Reject(exc);

            Assert.Equal(1, promiseMock.RejectCalls);
            Assert.Equal(1, abortablePromiseMock.RejectCalls);
        }
        public void Resolve_method_should_call_promise_fulfill_exactly_once()
        {
            string val = "iyhbiyhb";

            var promiseMock          = new PromiseMock();
            var abortablePromiseMock = new AbortablePromiseMock();

            Sailor d = new Sailor(promiseMock, abortablePromiseMock);

            d.Resolve(val);

            Assert.Equal(1, promiseMock.FulfillCalls);
            Assert.Equal(1, abortablePromiseMock.FulfillCalls);
        }