Created
September 17, 2019 03:47
-
-
Save IntegerMan/d6765a6f34180ba2e0530243420da323 to your computer and use it in GitHub Desktop.
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
using MattEland.Starship.Logic; | |
using MattEland.Starship.ProcessingService.Controllers; | |
using NUnit.Framework; | |
namespace Tests | |
{ | |
public class Tests | |
{ | |
[Test] | |
public void Test1() | |
{ | |
// Arrange | |
var controller = new GamesController(); | |
// Act | |
var result = controller.NewGame(); | |
// Assert | |
Assert.IsNotNull(result); | |
GameState state = (GameState) result.Value; | |
Assert.AreEqual(2, state.Id); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment