public void CheckConnected() { UfEager ufEager = new UfEager(10); Assert.IsFalse(ufEager.Connected(0, 1)); ufEager.Union(0, 1); Assert.IsTrue(ufEager.Connected(0, 1)); }
public void CheckNotConnected() { UfEager ufEager = new UfEager(10); Assert.IsFalse(ufEager.Connected(0, 1)); }