Skip to content

Commit

Permalink
Update Castle.Core min from 4.4.0 to 4.4.1
Browse files Browse the repository at this point in the history
Closes nsubstitute#631.

Misc changes:
- ignore .ionide files
- helper to run test using only dotnet core (without .NET framework).
  • Loading branch information
dtchepak committed Jan 11, 2021
1 parent a4e2e6d commit 198044b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,6 @@ docs/_site/*

# Ignore VIM tmp files
*.swp

# Ignore Ionide files (https://ionide.io/)
.ionide
2 changes: 1 addition & 1 deletion src/NSubstitute/NSubstitute.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Castle.Core" Version="4.4.0-*" />
<PackageReference Include="Castle.Core" Version="4.4.1-*" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.3.0-*"
Condition="'$(TargetIsNet5)' != 'true'" />
</ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions testDotNetCore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
dotnet test -f netcoreapp1.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using NUnit.Framework;

namespace Na { public delegate void DoNothing(); }
namespace Ns { public delegate void DoNothing(); }
namespace Nt { public delegate void DoNothing(); }
namespace Nz { public delegate void DoNothing(); }

namespace NSubstitute.Acceptance.Specs.FieldReports
{
public class Issue631_NamespaceDelegate
{
[Test] public void Na() { Substitute.For<Na.DoNothing>(); }
[Test] public void Ns() { Substitute.For<Ns.DoNothing>(); }
[Test] public void Nt() { Substitute.For<Nt.DoNothing>(); }
[Test] public void Nz() { Substitute.For<Nz.DoNothing>(); }
}
}

0 comments on commit 198044b

Please sign in to comment.