diff --git a/Directory.Packages.props b/Directory.Packages.props index 48d1d7ddb..976600a38 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -131,7 +131,7 @@ - + diff --git a/src/bunit.template/template/Company.BlazorTests1.csproj b/src/bunit.template/template/Company.BlazorTests1.csproj index 5cf40a48c..46699f241 100644 --- a/src/bunit.template/template/Company.BlazorTests1.csproj +++ b/src/bunit.template/template/Company.BlazorTests1.csproj @@ -19,7 +19,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -27,7 +27,7 @@ - + all runtime; build; native; contentfiles; analyzers @@ -42,7 +42,7 @@ - + diff --git a/src/bunit.template/template/CounterCSharpTests.cs b/src/bunit.template/template/CounterCSharpTests.cs index 254157b13..359fc45c4 100644 --- a/src/bunit.template/template/CounterCSharpTests.cs +++ b/src/bunit.template/template/CounterCSharpTests.cs @@ -7,6 +7,7 @@ namespace Company.BlazorTests1; #if (testFramework_xunit) public class CounterCSharpTests : TestContext #elif (testFramework_xunitv3) +// The full qualified namespace for bUnit TestContext is used here as xunit v3 also offers a TestContext class public class CounterCSharpTests : Bunit.TestContext #elif (testFramework_nunit) public class CounterCSharpTests : BunitTestContext diff --git a/src/bunit.template/template/CounterRazorTests.razor b/src/bunit.template/template/CounterRazorTests.razor index f74a8a4a1..09f4ad12d 100644 --- a/src/bunit.template/template/CounterRazorTests.razor +++ b/src/bunit.template/template/CounterRazorTests.razor @@ -1,6 +1,7 @@ @*#if (testFramework_xunit) *@ @inherits TestContext @*#elif (testFramework_xunitv3)*@ +@* The full qualified namespace for bUnit TestContext is used here as xunit v3 also offers a TestContext class *@ @inherits Bunit.TestContext @*#elif (testFramework_nunit)*@ @inherits BunitTestContext