static void Main(string[] args) { BoolVector boolVector = new BoolVector(true, true, false, false, true); Console.WriteLine(boolVector.GetVectorsStringFormat()); Console.WriteLine(boolVector.CountAmountOf(FindValue.Zero)); }
public void TestDisjunction() { BoolVector boolVector1 = new BoolVector(false, false, true, true); BoolVector boolVector2 = new BoolVector(false, true, false, true); BoolVector shouldBeEqualTo = new BoolVector(false, true, true, true); StringAssert.Equals((boolVector1 | boolVector2).GetVectorsStringFormat(), shouldBeEqualTo.GetVectorsStringFormat()); }
public void TestInversion() { BoolVector invertedBoolVector = new BoolVector(false, false, true, false, true, true, false); StringAssert.Equals(invertedBoolVector.GetVectorsStringFormat(), (!boolVector).GetVectorsStringFormat()); }