Test fixtures must reference source assembly
This commit is contained in:
Родитель
5a1a91151e
Коммит
d12f377dda
|
@ -25,8 +25,4 @@
|
|||
<_Parameter2>$([MSBuild]::EnsureTrailingSlash('$(NuGetPackageRoot)'))dotnet-ef/$(DotnetEfPackageVersion)/tools/netcoreapp3.0/any/dotnet-ef.dll</_Parameter2>
|
||||
</AssemblyAttribute>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="Infrastructure/**/*.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -13,7 +13,7 @@ using Xunit.Abstractions;
|
|||
#if EDGE
|
||||
[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)]
|
||||
#endif
|
||||
[assembly: TestFramework("Templates.Test.Helpers.XunitExtensions.XunitTestFrameworkWithAssemblyFixture", "Templates.Test.SpaTemplateTest")]
|
||||
[assembly: TestFramework("Templates.Test.Helpers.XunitExtensions.XunitTestFrameworkWithAssemblyFixture", "Templates.Test.Common")]
|
||||
namespace Templates.Test.SpaTemplateTest
|
||||
{
|
||||
public class SpaTemplateTestBase : BrowserTestBase
|
||||
|
|
|
@ -20,9 +20,4 @@
|
|||
<ItemGroup>
|
||||
<ProjectReference Include="../Templates.Test.Common/Templates.Test.Common.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- For some reason xunit doesn't work if the Fixture stuff isn't in the same project as the tests. -->
|
||||
<Compile Include="../Templates.Test.Common/Infrastructure/**/*.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -12,7 +12,7 @@ using Xunit.Abstractions;
|
|||
#if EDGE
|
||||
[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)]
|
||||
#endif
|
||||
[assembly: TestFramework("Templates.Test.Helpers.XunitExtensions.XunitTestFrameworkWithAssemblyFixture", "Templates.Test")]
|
||||
[assembly: TestFramework("Templates.Test.Helpers.XunitExtensions.XunitTestFrameworkWithAssemblyFixture", "Templates.Test.Common")]
|
||||
namespace Templates.Test
|
||||
{
|
||||
public class MvcTemplateTest : BrowserTestBase
|
||||
|
|
|
@ -25,9 +25,4 @@
|
|||
<ItemGroup>
|
||||
<ProjectReference Include="../Templates.Test.Common/Templates.Test.Common.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- For some reason xunit doesn't work if the Fixture stuff isn't in the same project as the tests. -->
|
||||
<Compile Include="../Templates.Test.Common/Infrastructure/**/*.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
Загрузка…
Ссылка в новой задаче