Esempio n. 1
0
        public void AddBinaryTest()
        {
            var p = new ArrayQ();

            Assert.AreEqual("100", p.AddBinary("1", "11"));
            Assert.AreEqual("10101", p.AddBinary("1010", "1011"));
            Assert.AreEqual("110", p.AddBinary("11", "11"));
            Assert.AreEqual("11", p.AddBinary("11", ""));
            Assert.AreEqual("11", p.AddBinary("", "11"));
            Assert.AreEqual("0", p.AddBinary("0", "0"));
            Assert.AreEqual("10", p.AddBinary("1", "1"));
        }