Пример #1
0
        public void CreateLineDirectionFromString_Throws_ForUnknownString()
        {
            // Arrange
            var sut = new PathDtoToPath();

            // Act
            // Assert
            Assert.Throws <ArgumentException>(() => sut.CreateLineDirectionFromString("abc"));
        }
Пример #2
0
        public void CreateLineDirectionFromString_ReturnsForward_ForForward()
        {
            // Arrange
            var sut = new PathDtoToPath();

            // Act
            Constants.LineDirection actual = sut.CreateLineDirectionFromString("Forward");

            // Assert
            Assert.AreEqual(Constants.LineDirection.Forward,
                            actual);
        }