public void TestPoint4() { List <double> expected = new List <double>(); List <double> actual = new List <double>(); expected.Add(1); //Корень из цифры 2 округленный в нижнюю сторону actual = Point4.GetAnswer(list); for (int i = 0; i < expected.Count; i++) { Assert.AreEqual(expected[i], actual[i]); } }
public void Point4XML() { var actual = Point4.GetAnswer(doc).First().Value.ToString(); Assert.IsTrue(Point4.GetAnswer(doc).First().Value.ToString().Equals("8/25/1997 12:00:00 AM")); }