public void SetInvalid_RemovesValidState9() { var sp = new StateSpace(); sp.SetInvalid(9); Assert.IsTrue(sp.GetValidStates().SequenceEqual(new int[] { 1, 2, 3, 4, 5, 6, 7, 8 })); }