Skip to content

Commit

Permalink
test: fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Jan 23, 2025
1 parent a01bf69 commit 7a22468
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="xunit.v3" Version="1.0.1" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.1" />
<PackageVersion Include="Xunit.DependencyInjection" Version="10.0.0" />
<PackageVersion Include="Xunit.DependencyInjection" Version="10.1.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
</ItemGroup>
<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/dotnet-exec/Services/CodeExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ protected async Task<Result<int>> ExecuteAssembly(Assembly assembly, ExecOptions
var parameters = entryMethod.GetParameters();
Logger.LogDebug("Entry is found, {entryName}, returnType: {returnType}",
$"{entryMethod.DeclaringType!.FullName}.{entryMethod.Name}", entryMethod.ReturnType.FullName);

try
{
object? returnValue = null;
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-exec/Services/RefResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed class RefResolver(INuGetHelper nugetHelper, IReferenceResolverFact
: IRefResolver
{
// for unit test only
internal static IRefResolver InstanceForTest { get; } =
internal static IRefResolver InstanceForTest =>
new RefResolver(new NuGetHelper(NullLoggerFactory.Instance), new ReferenceResolverFactory(null));
// for unit test only
public bool DisableCache { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion tests/IntegrationTest/IntegrationTest.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 7a22468

Please sign in to comment.