示例#1
0
        public void AddBinaryTest_ALonger()
        {
            var solution = new _067_AddBinary();
            var result   = solution.AddBinary("10", "1");

            Assert.AreEqual("11", result);
        }
示例#2
0
        public void AddBinaryTest_WithMultipleCarry_2()
        {
            var solution = new _067_AddBinary();
            var result = solution.AddBinary("11", "11");

            Assert.AreEqual("110", result);
        }
示例#3
0
        public void AddBinaryTest_WithMultipleCarry_2()
        {
            var solution = new _067_AddBinary();
            var result   = solution.AddBinary("11", "11");

            Assert.AreEqual("110", result);
        }
示例#4
0
        public void AddBinaryTest_BLonger()
        {
            var solution = new _067_AddBinary();
            var result = solution.AddBinary("1", "10");

            Assert.AreEqual("11", result);
        }