public void CreateTurnDirectionFromString_Throws_ForUnknownString() { // Arrange var sut = new PathDtoToPath(); // Act // Assert Assert.Throws <ArgumentException>(() => sut.CreateTurnDirectionFromString("abc")); }
public void CreateTurnDirectionFromString_ReturnsClockwise_ForClockwise() { // Arrange var sut = new PathDtoToPath(); // Act Constants.TurnDirection actual = sut.CreateTurnDirectionFromString("Clockwise"); // Assert Assert.AreEqual(Constants.TurnDirection.Clockwise, actual); }