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."); }
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"); }
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"); }
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"); }