public void GenerateTemplateInfoForInheritedGenericInterfacesListSmokeTest() { var file = CSharpSyntaxTree.ParseText(File.ReadAllText(IntegrationTestHelper.GetPath("InheritedGenericInterfacesApi.cs"))); var fixture = new InterfaceStubGenerator(); var input = file.GetRoot().DescendantNodes() .OfType <InterfaceDeclarationSyntax>() .ToList(); var result = fixture.GenerateTemplateInfoForInterfaceList(input); Assert.Equal(4, result.ClassList.Count); var inherited = result.ClassList.First(c => c.InterfaceName == "IDataApiA"); Assert.Equal(7, inherited.MethodList.Count); var method = inherited.MethodList.FirstOrDefault(a => a.Name == "Create"); Assert.Equal("DataEntity, long", method.TypeParameters); method = inherited.MethodList.FirstOrDefault(a => a.Name == "Copy"); Assert.NotNull(method); inherited = result.ClassList.First(c => c.InterfaceName == "IDataApiB"); Assert.Equal(6, inherited.MethodList.Count); method = inherited.MethodList.FirstOrDefault(a => a.Name == "Create"); Assert.Equal("DataEntity, int", method.TypeParameters); method = inherited.MethodList.FirstOrDefault(a => a.Name == "Copy"); Assert.Null(method); }
public async Task NoRefitInterfacesSmokeTest() { var input = File.ReadAllText(IntegrationTestHelper.GetPath("IInterfaceWithoutRefit.cs")); await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies, TestState = { AdditionalReferences = { RefitAssembly }, Sources = { input }, }, }.RunAsync(); await new VerifyCSV2.Test { ReferenceAssemblies = ReferenceAssemblies, TestState = { AdditionalReferences = { RefitAssembly }, Sources = { input }, }, }.RunAsync(); }
public async Task FindInterfacesSmokeTest() { var input = File.ReadAllText(IntegrationTestHelper.GetPath("GitHubApi.cs")); var output1 = @" #pragma warning disable namespace RefitInternalGenerated { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] [global::System.AttributeUsage (global::System.AttributeTargets.Class | global::System.AttributeTargets.Struct | global::System.AttributeTargets.Enum | global::System.AttributeTargets.Constructor | global::System.AttributeTargets.Method | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field | global::System.AttributeTargets.Event | global::System.AttributeTargets.Interface | global::System.AttributeTargets.Delegate)] sealed class PreserveAttribute : global::System.Attribute { // // Fields // public bool AllMembers; public bool Conditional; } } #pragma warning restore "; var output1_5 = @" #pragma warning disable namespace Refit.Implementation { /// <inheritdoc /> [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.Diagnostics.DebuggerNonUserCode] [global::RefitInternalGenerated.PreserveAttribute] [global::System.Reflection.Obfuscation(Exclude=true)] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] internal static partial class Generated { } } #pragma warning restore "; var output2 = @"#nullable disable #pragma warning disable namespace Refit.Implementation { partial class Generated { /// <inheritdoc /> [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.Diagnostics.DebuggerNonUserCode] [global::RefitInternalGenerated.PreserveAttribute] [global::System.Reflection.Obfuscation(Exclude=true)] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] partial class RefitTestsIGitHubApi : global::Refit.Tests.IGitHubApi { /// <inheritdoc /> public global::System.Net.Http.HttpClient Client { get; } readonly global::Refit.IRequestBuilder requestBuilder; /// <inheritdoc /> public RefitTestsIGitHubApi(global::System.Net.Http.HttpClient client, global::Refit.IRequestBuilder requestBuilder) { Client = client; this.requestBuilder = requestBuilder; } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::Refit.Tests.User> GetUser(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUser"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.IObservable<global::Refit.Tests.User> GetUserObservable(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserObservable"", new global::System.Type[] { typeof(string) } ); return (global::System.IObservable<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.IObservable<global::Refit.Tests.User> GetUserCamelCase(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserCamelCase"", new global::System.Type[] { typeof(string) } ); return (global::System.IObservable<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<global::Refit.Tests.User>> GetOrgMembers(string @orgName, global::System.Threading.CancellationToken @cancellationToken) { var ______arguments = new object[] { @orgName, @cancellationToken }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetOrgMembers"", new global::System.Type[] { typeof(string), typeof(global::System.Threading.CancellationToken) } ); return (global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::Refit.Tests.UserSearchResult> FindUsers(string @q) { var ______arguments = new object[] { @q }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""FindUsers"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.UserSearchResult>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetIndex() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetIndex"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.IObservable<string> GetIndexObservable() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetIndexObservable"", new global::System.Type[] { } ); return (global::System.IObservable<string>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::Refit.Tests.User> NothingToSeeHere() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""NothingToSeeHere"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>> NothingToSeeHereWithMetadata() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""NothingToSeeHereWithMetadata"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>> GetUserWithMetadata(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserWithMetadata"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.IObservable<global::Refit.ApiResponse<global::Refit.Tests.User>> GetUserObservableWithMetadata(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserObservableWithMetadata"", new global::System.Type[] { typeof(string) } ); return (global::System.IObservable<global::Refit.ApiResponse<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::Refit.Tests.User> CreateUser(global::Refit.Tests.User @user) { var ______arguments = new object[] { @user }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""CreateUser"", new global::System.Type[] { typeof(global::Refit.Tests.User) } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>> CreateUserWithMetadata(global::Refit.Tests.User @user) { var ______arguments = new object[] { @user }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""CreateUserWithMetadata"", new global::System.Type[] { typeof(global::Refit.Tests.User) } ); return (global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::Refit.Tests.User> global::Refit.Tests.IGitHubApi.GetUser(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUser"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.IObservable<global::Refit.Tests.User> global::Refit.Tests.IGitHubApi.GetUserObservable(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserObservable"", new global::System.Type[] { typeof(string) } ); return (global::System.IObservable<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.IObservable<global::Refit.Tests.User> global::Refit.Tests.IGitHubApi.GetUserCamelCase(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserCamelCase"", new global::System.Type[] { typeof(string) } ); return (global::System.IObservable<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<global::Refit.Tests.User>> global::Refit.Tests.IGitHubApi.GetOrgMembers(string @orgName, global::System.Threading.CancellationToken @cancellationToken) { var ______arguments = new object[] { @orgName, @cancellationToken }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetOrgMembers"", new global::System.Type[] { typeof(string), typeof(global::System.Threading.CancellationToken) } ); return (global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::Refit.Tests.UserSearchResult> global::Refit.Tests.IGitHubApi.FindUsers(string @q) { var ______arguments = new object[] { @q }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""FindUsers"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.UserSearchResult>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> global::Refit.Tests.IGitHubApi.GetIndex() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetIndex"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.IObservable<string> global::Refit.Tests.IGitHubApi.GetIndexObservable() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetIndexObservable"", new global::System.Type[] { } ); return (global::System.IObservable<string>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::Refit.Tests.User> global::Refit.Tests.IGitHubApi.NothingToSeeHere() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""NothingToSeeHere"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>> global::Refit.Tests.IGitHubApi.NothingToSeeHereWithMetadata() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""NothingToSeeHereWithMetadata"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>> global::Refit.Tests.IGitHubApi.GetUserWithMetadata(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserWithMetadata"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.IObservable<global::Refit.ApiResponse<global::Refit.Tests.User>> global::Refit.Tests.IGitHubApi.GetUserObservableWithMetadata(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserObservableWithMetadata"", new global::System.Type[] { typeof(string) } ); return (global::System.IObservable<global::Refit.ApiResponse<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::Refit.Tests.User> global::Refit.Tests.IGitHubApi.CreateUser(global::Refit.Tests.User @user) { var ______arguments = new object[] { @user }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""CreateUser"", new global::System.Type[] { typeof(global::Refit.Tests.User) } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>> global::Refit.Tests.IGitHubApi.CreateUserWithMetadata(global::Refit.Tests.User @user) { var ______arguments = new object[] { @user }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""CreateUserWithMetadata"", new global::System.Type[] { typeof(global::Refit.Tests.User) } ); return (global::System.Threading.Tasks.Task<global::Refit.ApiResponse<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } } } } #pragma warning restore "; var output3 = @"#nullable disable #pragma warning disable namespace Refit.Implementation { partial class Generated { /// <inheritdoc /> [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.Diagnostics.DebuggerNonUserCode] [global::RefitInternalGenerated.PreserveAttribute] [global::System.Reflection.Obfuscation(Exclude=true)] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] partial class RefitTestsIGitHubApiDisposable : global::Refit.Tests.IGitHubApiDisposable { /// <inheritdoc /> public global::System.Net.Http.HttpClient Client { get; } readonly global::Refit.IRequestBuilder requestBuilder; /// <inheritdoc /> public RefitTestsIGitHubApiDisposable(global::System.Net.Http.HttpClient client, global::Refit.IRequestBuilder requestBuilder) { Client = client; this.requestBuilder = requestBuilder; } /// <inheritdoc /> public global::System.Threading.Tasks.Task RefitMethod() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""RefitMethod"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task global::Refit.Tests.IGitHubApiDisposable.RefitMethod() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""RefitMethod"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task)______func(this.Client, ______arguments); } /// <inheritdoc /> void global::System.IDisposable.Dispose() { Client?.Dispose(); } } } } #pragma warning restore "; var output4 = @"#nullable disable #pragma warning disable namespace Refit.Implementation { partial class Generated { /// <inheritdoc /> [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.Diagnostics.DebuggerNonUserCode] [global::RefitInternalGenerated.PreserveAttribute] [global::System.Reflection.Obfuscation(Exclude=true)] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] partial class RefitTestsTestNestedINestedGitHubApi : global::Refit.Tests.TestNested.INestedGitHubApi { /// <inheritdoc /> public global::System.Net.Http.HttpClient Client { get; } readonly global::Refit.IRequestBuilder requestBuilder; /// <inheritdoc /> public RefitTestsTestNestedINestedGitHubApi(global::System.Net.Http.HttpClient client, global::Refit.IRequestBuilder requestBuilder) { Client = client; this.requestBuilder = requestBuilder; } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::Refit.Tests.User> GetUser(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUser"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.IObservable<global::Refit.Tests.User> GetUserObservable(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserObservable"", new global::System.Type[] { typeof(string) } ); return (global::System.IObservable<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.IObservable<global::Refit.Tests.User> GetUserCamelCase(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserCamelCase"", new global::System.Type[] { typeof(string) } ); return (global::System.IObservable<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<global::Refit.Tests.User>> GetOrgMembers(string @orgName) { var ______arguments = new object[] { @orgName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetOrgMembers"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::Refit.Tests.UserSearchResult> FindUsers(string @q) { var ______arguments = new object[] { @q }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""FindUsers"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.UserSearchResult>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetIndex() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetIndex"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.IObservable<string> GetIndexObservable() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetIndexObservable"", new global::System.Type[] { } ); return (global::System.IObservable<string>)______func(this.Client, ______arguments); } /// <inheritdoc /> public global::System.Threading.Tasks.Task NothingToSeeHere() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""NothingToSeeHere"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::Refit.Tests.User> global::Refit.Tests.TestNested.INestedGitHubApi.GetUser(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUser"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.IObservable<global::Refit.Tests.User> global::Refit.Tests.TestNested.INestedGitHubApi.GetUserObservable(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserObservable"", new global::System.Type[] { typeof(string) } ); return (global::System.IObservable<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.IObservable<global::Refit.Tests.User> global::Refit.Tests.TestNested.INestedGitHubApi.GetUserCamelCase(string @userName) { var ______arguments = new object[] { @userName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetUserCamelCase"", new global::System.Type[] { typeof(string) } ); return (global::System.IObservable<global::Refit.Tests.User>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<global::Refit.Tests.User>> global::Refit.Tests.TestNested.INestedGitHubApi.GetOrgMembers(string @orgName) { var ______arguments = new object[] { @orgName }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetOrgMembers"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<global::Refit.Tests.User>>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::Refit.Tests.UserSearchResult> global::Refit.Tests.TestNested.INestedGitHubApi.FindUsers(string @q) { var ______arguments = new object[] { @q }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""FindUsers"", new global::System.Type[] { typeof(string) } ); return (global::System.Threading.Tasks.Task<global::Refit.Tests.UserSearchResult>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> global::Refit.Tests.TestNested.INestedGitHubApi.GetIndex() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetIndex"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.IObservable<string> global::Refit.Tests.TestNested.INestedGitHubApi.GetIndexObservable() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""GetIndexObservable"", new global::System.Type[] { } ); return (global::System.IObservable<string>)______func(this.Client, ______arguments); } /// <inheritdoc /> global::System.Threading.Tasks.Task global::Refit.Tests.TestNested.INestedGitHubApi.NothingToSeeHere() { var ______arguments = new object[] { }; var ______func = requestBuilder.BuildRestResultFuncForMethod(""NothingToSeeHere"", new global::System.Type[] { } ); return (global::System.Threading.Tasks.Task)______func(this.Client, ______arguments); } } } } #pragma warning restore "; await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies, TestState = { AdditionalReferences = { RefitAssembly },