8000 Update Microsoft.CodeAnalysis.Testing to 1.0.1-beta1.21177.1 by sharwell · Pull Request #1140 · reactiveui/refit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update Microsoft.CodeAnalysis.Testing to 1.0.1-beta1.21177.1 #1140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 10 additions & 27 deletions Refit.Tests/InterfaceStubGenerator.cs
10000
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Text;

using Refit.Generator;

Expand Down Expand Up @@ -112,13 +110,6 @@ public async Task NoRefitInterfacesSmokeTest()
AdditionalReferences = { RefitAssembly },
Sources = { input },
},
FixedState =
{
Sources =
{
input
},
},
}.RunAsync();
}

Expand Down Expand Up @@ -639,17 +630,13 @@ public RefitTestsTestNestedINestedGitHubApi(global::System.Net.Http.HttpClient c
{
AdditionalReferences = { RefitAssembly },
Sources = { input },
},
FixedState =
{
Sources =
GeneratedSources =
{
input,
(@"InterfaceStubGenerator.Core\Refit.Generator.InterfaceStubGenerator\PreserveAttribute.g.cs", SourceText.From(output1, Encoding.UTF8)),
(@"InterfaceStubGenerator.Core\Refit.Generator.InterfaceStubGenerator\Generated.g.cs", SourceText.From(output1_5, Encoding.UTF8)),
(@"InterfaceStubGenerator.Core\Refit.Generator.InterfaceStubGenerator\IGitHubApi.g.cs", SourceText.From(output2, Encoding.UTF8)),
(@"InterfaceStubGenerator.Core\Refit.Generator.InterfaceStubGenerator\IGitHubApiDisposable.g.cs", SourceText.From(output3, Encoding.UTF8)),
(@"InterfaceStubGenerator.Core\Refit.Generator.InterfaceStubGenerator\INestedGitHubApi.g.cs", SourceText.From(output4, Encoding.UTF8)),
(typeof(InterfaceStubGenerator), "PreserveAttribute.g.cs", output1),
(typeof(InterfaceStubGenerator), "Generated.g.cs", output1_5),
(typeof(InterfaceStubGenerator), "IGitHubApi.g.cs", output2),
(typeof(InterfaceStubGenerator), "IGitHubApiDisposable.g.cs", output3),
(typeof(InterfaceStubGenerator), "INestedGitHubApi.g.cs", output4),
},
},
}.RunAsync();
Expand Down Expand Up @@ -773,15 +760,11 @@ public IServiceWithoutNamespace(global::System.Net.Http.HttpClient client, globa
{
AdditionalReferences = { RefitAssembly },
Sources = { input },
},
FixedState =
{
Sources =
GeneratedSources =
{
input,
(@"InterfaceStubGenerator.Core\Refit.Generator.InterfaceStubGenerator\PreserveAttribute.g.cs", SourceText.From(output1, Encoding.UTF8)),
(@"InterfaceStubGenerator.Core\Refit.Generator.InterfaceStubGenerator\Generated.g.cs", SourceText.From(output1_5, Encoding.UTF8)),
(@"InterfaceStubGenerator.Core\Refit.Generator.InterfaceStubGenerator\IServiceWithoutNamespace.g.cs", SourceText.From(output2, Encoding.UTF8)),
(typeof(InterfaceStubGenerator), "PreserveAttribute.g.cs", output1),
(typeof(InterfaceStubGenerator), "Generated.g.cs", output1_5),
(typeof(InterfaceStubGenerator), "IServiceWithoutNamespace.g.cs", output2),
},
},
}.RunAsync();
Expand Down
2 changes: 1 addition & 1 deletion Refit.Tests/Refit.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
<PackageReference Include="System.Reactive" Version="5.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit" Version="1.0.1-beta1.21117.2" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit" Version="1.0.1-beta1.21177.1" />
<PackageReference Include="RichardSzalay.MockHttp" Version="6.0.0" />
<ProjectReference Include="..\Refit.HttpClientFactory\Refit.HttpClientFactory.csproj" />
<ProjectReference Include="..\Refit.Newtonsoft.Json\Refit.Newtonsoft.Json.csproj" />
Expand Down
0