forked from overengineering/sharpasonne
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds model test project and a test for TileBuilder.
- Loading branch information
Lee Richardson
committed
Dec 13, 2017
1 parent
2b02596
commit 9b2e06c
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
Sharparsonne.Models.Tests/Sharparsonne.Models.Tests.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,16 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="xunit" Version="2.3.1" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Sharpasonne.Models\Sharpasonne.Models.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,19 @@ | ||
using System.Linq; | ||
using Sharpasonne; | ||
using Sharpasonne.Models; | ||
using Xunit; | ||
|
||
namespace Sharparsonne.Models.Tests | ||
{ | ||
public class TileBuilderTests | ||
{ | ||
[Fact] | ||
void When_CreatingEmptyTile_Then_ReturnsSome() | ||
{ | ||
var maybeTile = new TileBuilder() | ||
.CreateTile(Enumerable.Empty<IFeature>()); | ||
|
||
Assert.True(maybeTile.HasValue); | ||
} | ||
} | ||
} |
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