Exemplo n.º 1
0
        public void Test_CheckIsFitLegoBlocks_ShouldReturnCorectBoolValue()
        {
            List <int[]> firstBlocks = new List <int[]>()
            {
                new[] { 1, 2, 3, 4, 5 }, new[] { 1, 2, 3, 4 }
            };
            List <int[]> secondBlocks = new List <int[]>()
            {
                new[] { 6, 7, 8 }, new[] { 5, 6, 7, 8 }
            };
            List <int[]> thirdBlocks = new List <int[]>()
            {
                new[] { 6, 7, 8 }, new[] { 5, 6, 7 }
            };

            bool result      = LegoBlocks.CheckIsFitLegoBlocks(firstBlocks, secondBlocks);
            bool falseResult = LegoBlocks.CheckIsFitLegoBlocks(firstBlocks, thirdBlocks);

            Assert.IsTrue(result);
            Assert.IsFalse(falseResult);
        }