Exemplo n.º 1
0
        static void Main(string[] args)
        {
            BoolVector boolVector = new BoolVector(true, true, false, false, true);

            Console.WriteLine(boolVector.GetVectorsStringFormat());
            Console.WriteLine(boolVector.CountAmountOf(FindValue.Zero));
        }
Exemplo n.º 2
0
        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());
        }
Exemplo n.º 3
0
        public void TestInversion()
        {
            BoolVector invertedBoolVector = new BoolVector(false, false, true, false, true, true, false);

            StringAssert.Equals(invertedBoolVector.GetVectorsStringFormat(), (!boolVector).GetVectorsStringFormat());
        }