public void PromiseStringIsAsyncCall() { var type = CreateSingleParameterGeneric("Promise", "string"); var isAsync = NameService.IsAsync(type); Assert.IsTrue(isAsync); }
public void GenericIsNotAsyncCall() { var type = CreateSingleParameterGeneric("NonPromise", "string"); var isAsync = NameService.IsAsync(type); Assert.IsFalse(isAsync); }
public void VoidIsNotAsyncCall() { var type = CreateTypeDefinition("void"); var isAsync = NameService.IsAsync(type); Assert.IsFalse(isAsync); }