Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created September 17, 2019 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/d6765a6f34180ba2e0530243420da323 to your computer and use it in GitHub Desktop.
Save IntegerMan/d6765a6f34180ba2e0530243420da323 to your computer and use it in GitHub Desktop.
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