Exemple #1
0
        public void AnalyseAdresse_WithFourParams()
        {
            // Arrange
            string value = "0 Auf dem Hubel 4206 Seewen SO";

            // Act
            AnalysePdfData apd     = new AnalysePdfData();
            List <string>  address = apd.AnalyseEdidValue(value);

            // Assert
            Assert.AreEqual(5, address.Count);
            Assert.AreEqual("Auf dem Hubel", address[1]);
            Assert.AreEqual(string.Empty, address[2]);
            Assert.AreEqual("Seewen SO", address[4]);
        }
Exemple #2
0
        public void AnalyseAdresse_WithFiveParams()
        {
            // Arrange
            string value = "0 Im Wolfbiel 5 4206 Seewen SO";
            // string value = "3 Centralstrasse 8b 6210 Sursee";

            // Act
            AnalysePdfData apd     = new AnalysePdfData();
            List <string>  address = apd.AnalyseEdidValue(value);

            // Assert
            Assert.AreEqual(5, address.Count);
            Assert.AreEqual("Im Wolfbiel", address[1]);
            Assert.AreEqual("Seewen SO", address[4]);
        }