public void CalculateZombieMatrixTimeMethodShouldReturnZeroWhenBelowGivenMatrixIsHavingOneValueOne() { int[,] area = new int[, ] { { 1 } }; var response = ZombieMatrix.CalculateZombieMatrixTime(area); Assert.AreEqual(0, response); }
public void CalculateZombieMatrixTimeMethodShouldReturnSevenWhenBelowGivenMatrixIsPassed() { int[,] area = new int[, ] { { 1, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0 } }; var response = ZombieMatrix.CalculateZombieMatrixTime(area); Assert.AreEqual(7, response); }
public void CalculateZombieMatrixTimeMethodShouldReturnZeroWhenAllItemInMatrixIsOne() { int[,] array = new int[, ] { { 1, 1, 1, 1 }, { 1, 1, 1, 1 }, { 1, 1, 1, 1 }, { 1, 1, 1, 1 }, { 1, 1, 1, 1 }, { 1, 1, 1, 1 } }; var response = ZombieMatrix.CalculateZombieMatrixTime(array); Assert.AreEqual(0, response); }