public void Point5XML() { var actual = Point5.GetAnswer(doc).First().Element("id").Value; Assert.IsTrue(actual.Equals("COMMI")); }
public override string ToString() { string res = ""; res += string.Format("Point1- {0}\n", Point1.ToString()); res += string.Format("Point2- {0}\n", Point2.ToString()); res += string.Format("Point3- {0}\n", Point3.ToString()); res += string.Format("Point4- {0}\n", Point4.ToString()); res += string.Format("Point5- {0}\n", Point5.ToString()); res += string.Format("Point6- {0}\n", Point6.ToString()); res += string.Format("Point7- {0}\n", Point7.ToString()); res += string.Format("Point8- {0}\n", Point8.ToString()); res += string.Format("Edge- {0}", EdgeLenght); return(res); }
public void TestPoint5() { List <BigInteger> numbers = new List <BigInteger>(); for (int i = 0; i < 10; i++) { numbers.Add(Fibonacci.Fib(i)); } List <BigInteger> expected = new List <BigInteger>(); List <BigInteger> actual = new List <BigInteger>(); expected.Add(34); expected.Add(13); expected.Add(21); actual = Point5.GetAnswer(numbers); for (int i = 0; i < expected.Count; i++) { Assert.AreEqual(expected[i], actual[i]); } }