Exemplo n.º 1
0
        public void PromiseStringIsAsyncCall()
        {
            var type    = CreateSingleParameterGeneric("Promise", "string");
            var isAsync = NameService.IsAsync(type);

            Assert.IsTrue(isAsync);
        }
Exemplo n.º 2
0
        public void GenericIsNotAsyncCall()
        {
            var type    = CreateSingleParameterGeneric("NonPromise", "string");
            var isAsync = NameService.IsAsync(type);

            Assert.IsFalse(isAsync);
        }
Exemplo n.º 3
0
        public void VoidIsNotAsyncCall()
        {
            var type    = CreateTypeDefinition("void");
            var isAsync = NameService.IsAsync(type);

            Assert.IsFalse(isAsync);
        }