Exemplo n.º 1
0
        public void Mu_1_2_1()
        {
            var s = new SoLon("1") ^ new SoLon("2");

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

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

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

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

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

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

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

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

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

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

            Assert.AreEqual(true, s.Equals(new SoLon("10")));
        }
Exemplo n.º 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")));
        }
Exemplo n.º 13
0
        public void Cong_null_123456789_0_123456789()
        {
            var s = new SoLon("") + new SoLon("123456789");

            Assert.AreEqual(true, s.Equals(new SoLon("123456789")));
        }
Exemplo n.º 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")));
        }
Exemplo n.º 15
0
        public void Mu_2_10_1024()
        {
            var s = new SoLon("2") ^ new SoLon("10");

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

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

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

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

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

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

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

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