Test fixtures must reference source assembly

This commit is contained in:
Ryan Brandenburg 2018-10-31 16:37:09 -07:00
Родитель 5a1a91151e
Коммит d12f377dda
5 изменённых файлов: 2 добавлений и 16 удалений

Просмотреть файл

@ -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>