public void VerifyPercolationWith3By3Matrix() { percolation3.Open(1, 2); Assert.AreEqual(false, percolation3.Percolates()); percolation3.Open(2, 2); Assert.AreEqual(false, percolation3.Percolates()); percolation3.Open(3, 1); Assert.AreEqual(false, percolation3.Percolates()); percolation3.Open(2, 1); Assert.AreEqual(true, percolation3.Percolates()); }
public void VerifyPercolationWith6By6Matrix() { percolation6.Open(1, 1); Assert.AreEqual(false, percolation6.Percolates()); percolation6.Open(2, 1); Assert.AreEqual(false, percolation6.Percolates()); percolation6.Open(3, 1); Assert.AreEqual(false, percolation6.Percolates()); percolation6.Open(4, 1); Assert.AreEqual(false, percolation6.Percolates()); percolation6.Open(5, 1); Assert.AreEqual(false, percolation6.Percolates()); percolation6.Open(6, 1); Assert.AreEqual(true, percolation6.Percolates()); }