Skip to content

Commit 0aa8743

Browse files
chore(deps): update tunit to 0.20.16 (#2384)
* chore(deps): update tunit to 0.20.16 * Fix * Update snaps --------- Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
1 parent 46898d3 commit 0aa8743

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

Directory.Packages.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@
7676
<PackageVersion Include="Testcontainers.Redis" Version="4.4.0" />
7777
<PackageVersion Include="trxparser" Version="0.5.0" />
7878
<PackageVersion Include="Verify.NUnit" Version="30.1.0" />
79-
<PackageVersion Include="TUnit" Version="0.19.148" />
80-
<PackageVersion Include="TUnit.Core" Version="0.19.148" />
81-
<PackageVersion Include="TUnit.Assertions" Version="0.19.148" />
79+
<PackageVersion Include="TUnit" Version="0.20.16" />
80+
<PackageVersion Include="TUnit.Core" Version="0.20.16" />
81+
<PackageVersion Include="TUnit.Assertions" Version="0.20.16" />
8282
<PackageVersion Include="Verify.TUnit" Version="30.1.0" />
8383
<PackageVersion Include="Vogen" Version="7.0.3" />
8484
<PackageVersion Include="xunit" Version="2.9.3" />

TUnit.Templates.Tests/Snapshots/InstantiationTest.TUnit._.verified/TUnit/Data/DependencyInjectionClassConstructor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ namespace TUnit;
44

55
public class DependencyInjectionClassConstructor : IClassConstructor
66
{
7-
public T Create<T>(ClassConstructorMetadata classConstructorMetadata) where T : class
7+
public object Create(Type type, ClassConstructorMetadata classConstructorMetadata)
88
{
99
Console.WriteLine(@"You can also control how your test classes are new'd up, giving you lots of power and the ability to utilise tools such as dependency injection");
1010

11-
if (typeof(T) == typeof(AndEvenMoreTests))
11+
if (type == typeof(AndEvenMoreTests))
1212
{
13-
return (new AndEvenMoreTests(new DataClass()) as T)!;
13+
return new AndEvenMoreTests(new DataClass());
1414
}
1515

1616
throw new NotImplementedException();

TUnit.Templates/content/TUnit.AspNet/TestProject/TestProject.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<ItemGroup>
1111
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.5" />
12-
<PackageReference Include="TUnit" Version="0.19.148" />
12+
<PackageReference Include="TUnit" Version="0.20.16" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

TUnit.Templates/content/TUnit.Aspire.Starter/ExampleNamespace.TestProject/ExampleNamespace.TestProject.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="Aspire.Hosting.Testing" Version="9.2.1" />
14-
<PackageReference Include="TUnit" Version="0.19.148" />
14+
<PackageReference Include="TUnit" Version="0.20.16" />
1515
</ItemGroup>
1616

1717

TUnit.Templates/content/TUnit.Aspire.Test/ExampleNamespace.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="Aspire.Hosting.Testing" Version="9.2.1" />
13-
<PackageReference Include="TUnit" Version="0.19.148" />
13+
<PackageReference Include="TUnit" Version="0.20.16" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

TUnit.Templates/content/TUnit.Playwright/TestProject.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="TUnit.Playwright" Version="0.19.148" />
11+
<PackageReference Include="TUnit.Playwright" Version="0.20.16" />
1212
</ItemGroup>
1313

1414
</Project>

TUnit.Templates/content/TUnit/Data/DependencyInjectionClassConstructor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ namespace TestProject;
44

55
public class DependencyInjectionClassConstructor : IClassConstructor
66
{
7-
public T Create<T>(ClassConstructorMetadata classConstructorMetadata) where T : class
7+
public object Create(Type type, ClassConstructorMetadata classConstructorMetadata)
88
{
99
Console.WriteLine(@"You can also control how your test classes are new'd up, giving you lots of power and the ability to utilise tools such as dependency injection");
1010

11-
if (typeof(T) == typeof(AndEvenMoreTests))
11+
if (type == typeof(AndEvenMoreTests))
1212
{
13-
return (new AndEvenMoreTests(new DataClass()) as T)!;
13+
return new AndEvenMoreTests(new DataClass());
1414
}
1515

1616
throw new NotImplementedException();

TUnit.Templates/content/TUnit/TestProject.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="TUnit" Version="0.19.148" />
11+
<PackageReference Include="TUnit" Version="0.20.16" />
1212
</ItemGroup>
1313

1414
</Project>

0 commit comments

Comments
 (0)