-
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.
- Loading branch information
1 parent
bfaa909
commit 6b6081f
Showing
5 changed files
with
79 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Moq.Analyzers.Test | ||
{ | ||
using System.Runtime.CompilerServices; | ||
using VerifyTests; | ||
|
||
public static class ModuleInitializer | ||
{ | ||
[ModuleInitializer] | ||
public static void Initialize() | ||
{ | ||
VerifyNupkg.Initialize(); | ||
} | ||
} | ||
} |
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: 12 additions & 0 deletions
12
Source/Moq.Analyzers.Test/PackageTests.Baseline#contents.verified.txt
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,12 @@ | ||
/ | ||
|-- Moq.Analyzers.nuspec | ||
|-- analyzers | ||
| |-- dotnet | ||
| | |-- cs | ||
| | | |-- Moq.Analyzers.dll | ||
|-- lib | ||
| |-- netstandard2.0 | ||
| | |-- Moq.Analyzers.dll | ||
|-- tools | ||
| |-- install.ps1 | ||
| |-- uninstall.ps1 |
17 changes: 17 additions & 0 deletions
17
Source/Moq.Analyzers.Test/PackageTests.Baseline#manifest.verified.nuspec
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,17 @@ | ||
<package> | ||
<metadata> | ||
<id>Moq.Analyzers</id> | ||
<version>********</version> | ||
<authors>Andrey "Litee" Lipatkin</authors> | ||
<licenseUrl>https://github.com/Litee/moq.analyzers/blob/master/LICENSE</licenseUrl> | ||
<projectUrl>https://github.com/Litee/moq.analyzers</projectUrl> | ||
<description>Roslyn analyzer that helps to write unit tests using Moq mocking library by highlighting typical errors and suggesting quick fixes. Port of Resharper extension to Roslyn. Find the full list of detected issues at project GitHub page.</description> | ||
<releaseNotes>Upgraded to support Visual Studio 2019</releaseNotes> | ||
<copyright>2015-2019 Andrey Lipatkin</copyright> | ||
<tags>moq, mock, test, analyzers</tags> | ||
<repository type="git" commit="****************************************" /> | ||
<dependencies> | ||
<group targetFramework=".NETStandard2.0" /> | ||
</dependencies> | ||
</metadata> | ||
</package> |
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,30 @@ | ||
namespace Moq.Analyzers.Test | ||
{ | ||
using System.IO; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Threading.Tasks; | ||
using VerifyTests; | ||
using VerifyXunit; | ||
using Xunit; | ||
|
||
public class PackageTests | ||
{ | ||
private static readonly FileInfo Package; | ||
|
||
static PackageTests() | ||
{ | ||
Package = new FileInfo(Assembly.GetExecutingAssembly().Location) | ||
.Directory! | ||
.GetFiles("Moq.Analyzers*.nupkg") | ||
.OrderByDescending(f => f.LastWriteTimeUtc) | ||
.First(); | ||
} | ||
|
||
[Fact] | ||
public Task Baseline() | ||
{ | ||
return Verifier.VerifyFile(Package).ScrubNuspec(); | ||
} | ||
} | ||
} |