public void CreateLineDirectionFromString_Throws_ForUnknownString() { // Arrange var sut = new PathDtoToPath(); // Act // Assert Assert.Throws <ArgumentException>(() => sut.CreateLineDirectionFromString("abc")); }
public void CreateLineDirectionFromString_ReturnsForward_ForForward() { // Arrange var sut = new PathDtoToPath(); // Act Constants.LineDirection actual = sut.CreateLineDirectionFromString("Forward"); // Assert Assert.AreEqual(Constants.LineDirection.Forward, actual); }