示例#1
0
        public void Mu_1_2_1()
        {
            var s = new SoLon("1") ^ new SoLon("2");

            Assert.AreEqual(true, s.Equals(new SoLon("1")));
        }
示例#2
0
        public void Nhan_123_123_15129()
        {
            var s = new SoLon("123") * new SoLon("123");

            Assert.AreEqual(true, s.Equals(new SoLon("15129")));
        }
示例#3
0
        public void Nhan_123456__1__12346()
        {
            var s = new SoLon("-1") * new SoLon("123456");

            Assert.AreEqual(true, s.Equals(new SoLon("-123456")));
        }
示例#4
0
        public void HamSoSanh__true()
        {
            var s = new SoLon(new int[] { -1, 2, 3, 4 });

            Assert.AreEqual(true, s.Equals(new SoLon("-1234")));
        }
示例#5
0
        public void Nhan_1_0_0()
        {
            var s = new SoLon("0") * new SoLon("1");

            Assert.AreEqual(true, s.Equals(new SoLon("0")));
        }
示例#6
0
        public void Mu_4_10_1048576()
        {
            var s = new SoLon("4") ^ new SoLon("10");

            Assert.AreEqual(true, s.Equals(new SoLon("1048576")));
        }
示例#7
0
        public void Mu_6_12_2176782336()
        {
            var s = new SoLon("6") ^ new SoLon("12");

            Assert.AreEqual(true, s.Equals(new SoLon("2176782336")));
        }
示例#8
0
        public void Tru_0_0_0()
        {
            var s = new SoLon("") - new SoLon("0");

            Assert.AreEqual(true, s.Equals(new SoLon("")));
        }
示例#9
0
        public void Tru_0_123456__123456()
        {
            var s = new SoLon("") - new SoLon("123456");

            Assert.AreEqual(true, s.Equals(new SoLon("-123456")));
        }
示例#10
0
        public void Cong__123456789__123456789()
        {
            var s = new SoLon("-123456789") + new SoLon("-123456789");

            Assert.AreEqual(true, s.Equals(new SoLon("-246913578")));
        }
示例#11
0
        public void Cong_1_9_10()
        {
            var s = new SoLon("1") + new SoLon("9");

            Assert.AreEqual(true, s.Equals(new SoLon("10")));
        }
示例#12
0
        public void Cong_123456789_123456789()
        {
            var s = new SoLon("123456789") + new SoLon(new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 });

            Assert.AreEqual(true, s.Equals(new SoLon("246913578")));
        }
示例#13
0
        public void Cong_null_123456789_0_123456789()
        {
            var s = new SoLon("") + new SoLon("123456789");

            Assert.AreEqual(true, s.Equals(new SoLon("123456789")));
        }
示例#14
0
        public void Cong0_0_0()
        {
            var s = new SoLon("0") + new SoLon(new int[] { 0 });

            Assert.AreEqual(true, s.Equals(new SoLon("0")));
        }
示例#15
0
        public void Mu_2_10_1024()
        {
            var s = new SoLon("2") ^ new SoLon("10");

            Assert.AreEqual(true, s.Equals(new SoLon("1024")));
        }
示例#16
0
        public void Tru_6_9__3()
        {
            var s = new SoLon("6") - new SoLon("9");

            Assert.AreEqual(true, s.Equals(new SoLon("-3")));
        }
示例#17
0
        public void Mu_3_10_59049()
        {
            var s = new SoLon("3") ^ new SoLon("10");

            Assert.AreEqual(true, s.Equals(new SoLon("59049")));
        }
示例#18
0
        public void Tru_1234_1235__1()
        {
            var s = new SoLon("1234") - new SoLon("1235");

            Assert.AreEqual(true, s.Equals(new SoLon("-1")));
        }
示例#19
0
        public void Mu_5_11_48828125()
        {
            var s = new SoLon("5") ^ new SoLon("11");

            Assert.AreEqual(true, s.Equals(new SoLon("48828125")));
        }
示例#20
0
        public void Tru_1_10__9()
        {
            var s = new SoLon("1") - new SoLon("10");

            Assert.AreEqual(true, s.Equals(new SoLon("-9")));
        }
示例#21
0
        public void HamSoSanh_false()
        {
            var s = new SoLon("123");

            Assert.AreEqual(false, s.Equals(new SoLon(new int[] { 1, 3, 2 })));
        }
示例#22
0
        public void HamSaoSanh__false()
        {
            var s = new SoLon("-1234");

            Assert.AreEqual(false, s.Equals(new SoLon("1234")));
        }