コード例 #1
0
        public void PromiseStringIsAsyncCall()
        {
            var type    = CreateSingleParameterGeneric("Promise", "string");
            var isAsync = NameService.IsAsync(type);

            Assert.IsTrue(isAsync);
        }
コード例 #2
0
        public void GenericIsNotAsyncCall()
        {
            var type    = CreateSingleParameterGeneric("NonPromise", "string");
            var isAsync = NameService.IsAsync(type);

            Assert.IsFalse(isAsync);
        }
コード例 #3
0
        public void VoidIsNotAsyncCall()
        {
            var type    = CreateTypeDefinition("void");
            var isAsync = NameService.IsAsync(type);

            Assert.IsFalse(isAsync);
        }