public void TestMatrixPower() { var b = new Vector<Tuple<int, int>, int> { {new Tuple<int, int>(0, 0), 1}, {new Tuple<int, int>(1, 0), 1}, {new Tuple<int, int>(1, 1), 1} }; b.Power(2).ShouldEqual( new Vector<Tuple<int, int>, int> { {new Tuple<int, int>(0, 0), 1}, {new Tuple<int, int>(1, 0), 2}, {new Tuple<int, int>(1, 1), 1} } ); }