Exemple #1
0
        public void CleanTwoAlpha()
        {
            // Arrange
            var target = new Routing();
            var actual = target.Clean("ab");

            //Expected
            var expected = "";

            // Assert
            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void CleanTwoNumerical()
        {
            // Arrange
            var target = new Routing();
            var actual = target.Clean("12");

            //Expected
            var expected = "12";

            // Assert
            Assert.AreEqual(expected, actual);
        }
Exemple #3
0
        public void CleanTwoTrailingDelimitersNumeric()
        {
            // Arrange
            var target = new Routing();
            var actual = target.Clean("1+-");

            // Expected
            var expected = "1";

            // Assert
            Assert.AreEqual(expected, actual);
        }
Exemple #4
0
        public void CleanEmptyInput()
        {
            // Actual
            var target = new Routing();
            var actual = target.Clean("");

            // Expected
            var expected = "";

            // Assert
            Assert.AreEqual(expected, actual);
        }
Exemple #5
0
        public void CleanOneDelimiterTrailiing()
        {
            // Arrange
            var target = new Routing();
            var actual = target.Clean("1-");

            //Expected
            var expected = "1";

            // Assert
            Assert.AreEqual(expected, actual);
        }
Exemple #6
0
        public void CleanrTwoDelimitersSame()
        {
            // Arrange
            var target = new Routing();
            var actual = target.Clean("--");

            //Expected
            var expected = "";

            // Assert
            Assert.AreEqual(expected, actual);
        }
Exemple #7
0
        public void CleanOneNumericalOneAlpha()
        {
            // Arrange
            var target = new Routing();
            var actual = target.Clean("1a");

            //Expected
            var expected = "1";

            // Assert
            Assert.AreEqual(expected, actual);
        }