Skip to content

Instantly share code, notes, and snippets.

@FraukeN
Last active December 9, 2015 12:19
ConstructorTests
[TestMethod]
public void Location_is_constructed_with_correct_Id()
{
Location location = new Location(1);
Assert.AreEqual(1, location.Id);
}
[TestMethod]
public void Location_is_constructed_with_all_exits_set_to_no_exit()
{
Location location = new Location(1);
Assert.AreEqual(-1, location.ExitInDirection(0));
Assert.AreEqual(-1, location.ExitInDirection(1));
Assert.AreEqual(-1, location.ExitInDirection(2));
Assert.AreEqual(-1, location.ExitInDirection(3));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment