-
Notifications
You must be signed in to change notification settings - Fork 4
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
1df4338
commit bf2f8ba
Showing
4 changed files
with
49 additions
and
1 deletion.
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
19 changes: 19 additions & 0 deletions
19
tests/OneWare.Shared.UnitTests/OneWare.Shared.UnitTests.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,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<Import Project="..\..\build\props\XUnit.props" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<OutputType>Library</OutputType> | ||
<IsPackable>False</IsPackable> | ||
<IsTestProject>True</IsTestProject> | ||
<GenerateAssemblyInfo>False</GenerateAssemblyInfo> | ||
<GenerateRuntimeConfigurationFiles>True</GenerateRuntimeConfigurationFiles> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\OneWare.Shared\OneWare.Shared.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,18 @@ | ||
using OneWare.Shared.Helpers; | ||
using Xunit; | ||
|
||
namespace OneWare.Shared.UnitTests; | ||
|
||
public class ProjectHelperTests | ||
{ | ||
[Fact] | ||
public void MathWildCardTests() | ||
{ | ||
var include = new[] {"**"}; | ||
var exclude = new[] {".git"}; | ||
|
||
Assert.False(ProjectHelper.MatchWildCards(".git/FETCH_HEAD", include, exclude)); | ||
Assert.True(ProjectHelper.MatchWildCards("test.vhd", include, exclude)); | ||
Assert.True(ProjectHelper.MatchWildCards("nice/test.vhd", include, exclude)); | ||
} | ||
} |