コード例 #1
0
        public void AnalyseCommunityTag_AllInOneLine()
        {
            // Arrange
            List <string> data = new List <string>();

            data.Add("Gemeinde 2503 Erlinsbach(SO) Eidg. Gebäudeidentifikator 190 119 574");
            Housing housing = new Housing();

            // Act
            AnalysePdfData apd              = new AnalysePdfData();
            List <string>  fake             = new List <string>();
            List <string>  languageSettings = apd.IdentifyLanguage(fake);

            apd.AnalyseCommunityTag(data, housing, languageSettings);

            // Assert
            Assert.AreEqual("190119574", housing.Egid);
            Assert.AreEqual("Erlinsbach(SO)", housing.GemName);
            Assert.AreEqual("2503", housing.GemNr);
        }