Esempio n. 1
0
        public void IntArrOfArr_BothEmpty_IsEquivalentReturnsTrue()
        {
            var a1 = new ImmutableFunArray(new object[0], FunnyType.Anything);
            var a2 = new ImmutableFunArray(new object[0], FunnyType.Anything);

            Assert.IsTrue(a1.IsEquivalent(a2));
        }
Esempio n. 2
0
        public void IntArr_NotEquialent_IsEquivalentReturnsFalse()
        {
            var a1 = new ImmutableFunArray(new [] { 1, 2, 3 });
            var a2 = new ImmutableFunArray(new [] { 1, 2 });

            Assert.IsFalse(a1.IsEquivalent(a2));
        }
Esempio n. 3
0
        public void IntArrOfArr_Equivalent_IsEquivalentReturnsTrue()
        {
            var a1 = new ImmutableFunArray(
                FunnyType.Anything,
                new ImmutableFunArray(new int[0]),
                new ImmutableFunArray(new int[] { 1, 2 }),
                new ImmutableFunArray(new int[] { 1, 2, 3 })
                );
            var a2 = new ImmutableFunArray(
                FunnyType.Anything,
                new ImmutableFunArray(new int[0]),
                new ImmutableFunArray(new int[] { 1, 2 }),
                new ImmutableFunArray(new int[] { 1, 2, 3 })
                );

            Assert.IsTrue(a1.IsEquivalent(a2));
        }
Esempio n. 4
0
        public void TextArrOfArr_NotEquivalent_IsEquivalentReturnsFalse()
        {
            var a1 = new ImmutableFunArray(
                FunnyType.Anything,
                new ImmutableFunArray(new object[0], FunnyType.Anything),
                new ImmutableFunArray(new object[] { "1", "2" }, FunnyType.Anything),
                new ImmutableFunArray(new object[] { "1", "2", "3" }, FunnyType.Anything)
                );
            var a2 = new ImmutableFunArray(
                FunnyType.Anything,
                new ImmutableFunArray(new object[] { "lalala" }, FunnyType.Anything),
                new ImmutableFunArray(new object[] { "1", "2" }, FunnyType.Anything),
                new ImmutableFunArray(new object[] { "1", "2", "3" }, FunnyType.Anything)
                );

            Assert.IsFalse(a1.IsEquivalent(a2));
        }
Esempio n. 5
0
        public void IntArrOfArr_NotEquivalent_IsEquivalentReturnsFalse()
        {
            var a1 = new ImmutableFunArray(
                FunnyType.Anything,
                new ImmutableFunArray(new object[0], FunnyType.Anything),
                new ImmutableFunArray(new object[] { 1, 2 }, FunnyType.Anything),
                new ImmutableFunArray(new object[] { 1, 2, 3 }, FunnyType.Anything)
                );
            var a2 = new ImmutableFunArray(
                FunnyType.Int64,
                new ImmutableFunArray(new object[0], FunnyType.Anything),
                new ImmutableFunArray(new object[] { 1, 2 }, FunnyType.Anything),
                new ImmutableFunArray(new object[] { 1, 2 }, FunnyType.Anything)
                );

            Assert.IsFalse(a1.IsEquivalent(a2));
        }