コード例 #1
0
        public void TestFractionAddress()
        {
            string       testString                  = "Alphand_St.";
            LineFraction lineFractionType            = new LineFraction(testString);
            Dictionary <fractionType, string> result = lineFractionType.GetResult();

            Assert.AreEqual(result.Keys.First(), fractionType.Address);
            Assert.AreEqual(result.Values.First(), "Alphand_St.");
        }
コード例 #2
0
        public void TestFractionLastName()
        {
            string       testString                  = "Kustur>";
            LineFraction lineFractionType            = new LineFraction(testString);
            Dictionary <fractionType, string> result = lineFractionType.GetResult();

            Assert.AreEqual(result.Keys.First(), fractionType.LastName);
            Assert.AreEqual(result.Values.First(), "Kustur");
        }
コード例 #3
0
        public void TestFractionFullName()
        {
            string       testString                  = "<Anastasia>";
            LineFraction lineFractionType            = new LineFraction(testString);
            Dictionary <fractionType, string> result = lineFractionType.GetResult();

            Assert.AreEqual(result.Keys.First(), fractionType.FullName);
            Assert.AreEqual(result.Values.First(), "Anastasia");
        }
コード例 #4
0
        public void TestFractionPhone()
        {
            string       testString                  = ";+1-541-914-3010!";
            LineFraction lineFractionType            = new LineFraction(testString);
            Dictionary <fractionType, string> result = lineFractionType.GetResult();

            Assert.AreEqual(result.Keys.First(), fractionType.Phone);
            Assert.AreEqual(result.Values.First(), "1-541-914-3010");
        }