Thursday, January 20, 2011

Use CollectionAssert.AreEqual to test list

[Test]
public void Fibonacci_is_ok()
{
 CollectionAssert.AreEqual(
    new[] { 0,1,1,2,3,5,8 }, 
    Utils.FibonacciGenerator().Take(7).ToArray() );
}

No comments:

Post a Comment