-
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.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
17 changed files
with
417 additions
and
109 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
268 changes: 230 additions & 38 deletions
268
HexCore.Tests/HexGraph/Graph.Test.cs → HexCore.Tests/Graph.Test.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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,30 @@ | ||
using HexCore; | ||
using NUnit.Framework; | ||
|
||
namespace HexCoreTests | ||
{ | ||
[TestFixture] | ||
public class MovementTypeTest | ||
{ | ||
[Test] | ||
public void Equals_ShouldReturnFalse_WhenMovementTypesAreNotEqual() | ||
{ | ||
var type1 = new MovementType(1, "Type"); | ||
var type2 = new MovementType(2, "Type"); | ||
var type3 = new MovementType(1, "Some other type"); | ||
|
||
Assert.That(type1.Equals(type2), Is.False); | ||
Assert.That(type1.Equals(type3), Is.False); | ||
Assert.That(type1.Equals(null), Is.False); | ||
} | ||
|
||
[Test] | ||
public void Equals_ShouldReturnTrue_WhenMovementTypesAreEqual() | ||
{ | ||
var type1 = new MovementType(1, "Type"); | ||
var type2 = new MovementType(1, "Type"); | ||
|
||
Assert.That(type1.Equals(type2), Is.True); | ||
} | ||
} | ||
} |
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,30 @@ | ||
using HexCore; | ||
using NUnit.Framework; | ||
|
||
namespace HexCoreTests | ||
{ | ||
[TestFixture] | ||
public class TerrainTypeTest | ||
{ | ||
[Test] | ||
public void Equals_ShouldReturnFalse_WhenMovementTypesAreNotEqual() | ||
{ | ||
var type1 = new TerrainType(1, "Type"); | ||
var type2 = new TerrainType(2, "Type"); | ||
var type3 = new TerrainType(1, "Some other type"); | ||
|
||
Assert.That(type1.Equals(type2), Is.False); | ||
Assert.That(type1.Equals(type3), Is.False); | ||
Assert.That(type1.Equals(null), Is.False); | ||
} | ||
|
||
[Test] | ||
public void Equals_ShouldReturnTrue_WhenMovementTypesAreEqual() | ||
{ | ||
var type1 = new TerrainType(1, "Type"); | ||
var type2 = new TerrainType(1, "Type"); | ||
|
||
Assert.That(type1.Equals(type2), Is.True); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.