-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from vescon/feature/netstandard-netcore
Feature/netstandard netcore
- Loading branch information
Showing
206 changed files
with
968 additions
and
609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project> | ||
<PropertyGroup> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<Version>1.0-localBuild</Version> | ||
</PropertyGroup> | ||
</Project> |
24 changes: 24 additions & 0 deletions
24
...dBoundaryAspect.Fody.UnitTests.NetCore/MethodBoundaryAspect.Fody.UnitTests.NetCore.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.2</TargetFramework> | ||
|
||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="FluentAssertions" Version="5.2.0" /> | ||
<PackageReference Include="FodyHelpers" Version="3.3.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" /> | ||
<PackageReference Include="xunit" Version="2.4.1" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\MethodBoundaryAspect.Fody.UnitTests.TestAssembly.NetCore\MethodBoundaryAspect.Fody.UnitTests.TestAssembly.NetCore.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
37 changes: 37 additions & 0 deletions
37
src/MethodBoundaryAspect.Fody.UnitTests.NetCore/SpecialAspectTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using FluentAssertions; | ||
using MethodBoundaryAspect.Fody.UnitTests.Shared; | ||
using MethodBoundaryAspect.Fody.UnitTests.TestAssembly.NetFramework; | ||
using Xunit; | ||
|
||
namespace MethodBoundaryAspect.Fody.UnitTests.NetCore | ||
{ | ||
public class SpecialAspectTests : MethodBoundaryAspectTestBase | ||
{ | ||
[Fact] | ||
public void IfNetCoreClassIsWeaved_ThenTheAssemblyShouldBeValid() | ||
{ | ||
// Arrange | ||
var testClassType = typeof(SpecialAspectMethods); | ||
|
||
// Act | ||
Action call = () => WeaveAssemblyClass(testClassType); | ||
|
||
// Assert | ||
call.Should().NotThrow(); | ||
} | ||
|
||
[Fact] | ||
public void IfNetStandardClassIsWeaved_ThenTheAssemblyShouldBeValid() | ||
{ | ||
// Arrange | ||
var testClassType = typeof(TestAssembly.NetStandard.SpecialAspectMethods); | ||
|
||
// Act | ||
Action call = () => WeaveAssemblyClass(testClassType); | ||
|
||
// Assert | ||
call.Should().NotThrow(); | ||
} | ||
} | ||
} |
9 changes: 5 additions & 4 deletions
9
....Fody.UnitTests/ArrayTakingAspectTests.cs → ...ts.NetFramework/ArrayTakingAspectTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...ryAspect.Fody.UnitTests/AssemblyLoader.cs → ....UnitTests.NetFramework/AssemblyLoader.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
...spect.Fody.UnitTests/AsyncGenericTests.cs → ...itTests.NetFramework/AsyncGenericTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...undaryAspect.Fody.UnitTests/AsyncTests.cs → ...Fody.UnitTests.NetFramework/AsyncTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...t.Fody.UnitTests/ClassWithIndexerTests.cs → ...sts.NetFramework/ClassWithIndexerTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...pect.Fody.UnitTests/ComplexAspectTests.cs → ...tTests.NetFramework/ComplexAspectTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...aryAspect.Fody.UnitTests/DelegateTests.cs → ...y.UnitTests.NetFramework/DelegateTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
...spect.Fody.UnitTests/FlowBehaviorTests.cs → ...itTests.NetFramework/FlowBehaviorTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
....UnitTests/GenericClassWithArity1Tests.cs → ...tFramework/GenericClassWithArity1Tests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
....UnitTests/GenericClassWithArity2Tests.cs → ...tFramework/GenericClassWithArity2Tests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
....UnitTests/GenericForeignAssemblyTests.cs → ...tFramework/GenericForeignAssemblyTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...Fody.UnitTests/GenericNestedClassTests.cs → ...s.NetFramework/GenericNestedClassTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...yAspect.Fody.UnitTests/GenericTestBase.cs → ...UnitTests.NetFramework/GenericTestBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...dy.UnitTests/GenericWithRefReturnTests.cs → ...NetFramework/GenericWithRefReturnTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.