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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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