-
Notifications
You must be signed in to change notification settings - Fork 2
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 #81 from Particular/release-2.1.0
Release 2.1.0
- Loading branch information
Showing
19 changed files
with
119 additions
and
59 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.VisualStudio.Azure.Fabric.MSBuild" version="1.6.5" /> | ||
<package id="Microsoft.VisualStudio.Azure.Fabric.MSBuild" version="1.6.7" targetFramework="net40" /> | ||
</packages> |
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 |
---|---|---|
@@ -1,22 +1,16 @@ | ||
using System.IO; | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using ApprovalTests; | ||
using ApprovalTests.Reporters; | ||
using System.Runtime.CompilerServices; | ||
using NServiceBus.Persistence.ServiceFabric; | ||
using NUnit.Framework; | ||
using Particular.Approvals; | ||
using PublicApiGenerator; | ||
|
||
[TestFixture] | ||
public class APIApprovals | ||
{ | ||
[Test] | ||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
[UseReporter(typeof(DiffReporter), typeof(AllFailingTestsClipboardReporter))] | ||
public void ApproveServiceFabricPersistence() | ||
{ | ||
var combine = Path.Combine(TestContext.CurrentContext.TestDirectory, "NServiceBus.Persistence.ServiceFabric.dll"); | ||
var assembly = Assembly.LoadFile(combine); | ||
var publicApi = ApiGenerator.GeneratePublicApi(assembly); | ||
Approvals.Verify(publicApi); | ||
var publicApi = ApiGenerator.GeneratePublicApi(typeof(ServiceFabricPersistence).Assembly); | ||
Approver.Verify(publicApi); | ||
} | ||
} |
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
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
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,63 @@ | ||
namespace TestRunner | ||
{ | ||
using NUnit.Framework.Interfaces; | ||
|
||
class FullNameFilter : ITestFilter | ||
{ | ||
public FullNameFilter(string fullName) | ||
{ | ||
this.fullName = fullName; | ||
} | ||
|
||
public TNode ToXml(bool recursive) | ||
{ | ||
return TNode.FromXml($"<filter><test>{fullName}</test></filter>"); | ||
} | ||
|
||
public TNode AddToXml(TNode parentNode, bool recursive) | ||
{ | ||
parentNode.AddElement("test", fullName); | ||
return parentNode; | ||
} | ||
|
||
public bool Pass(ITest test) | ||
{ | ||
return Match(test) || MatchParent(test) || MatchDescendant(test); | ||
} | ||
|
||
public bool IsExplicitMatch(ITest test) | ||
{ | ||
return Match(test) || MatchDescendant(test); | ||
} | ||
|
||
bool MatchParent(ITest test) | ||
{ | ||
return test.Parent != null && (Match(test.Parent) || MatchParent(test.Parent)); | ||
} | ||
|
||
bool Match(ITest test) | ||
{ | ||
return test.FullName.Equals(fullName); | ||
} | ||
|
||
private bool MatchDescendant(ITest test) | ||
{ | ||
if (test.Tests == null) | ||
{ | ||
return false; | ||
} | ||
|
||
foreach (var child in test.Tests) | ||
{ | ||
if (Match(child) || MatchDescendant(child)) | ||
{ | ||
return true; | ||
} | ||
} | ||
|
||
return false; | ||
} | ||
|
||
string fullName; | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.VisualStudio.Azure.Fabric.MSBuild" version="1.6.5" /> | ||
<package id="Microsoft.VisualStudio.Azure.Fabric.MSBuild" version="1.6.7" targetFramework="net40" /> | ||
</packages> |