Пример #1
0
        public void Test4_ReturnsDoesNotFit()
        {
            var parcelSorting = new ParcelSorting.ParcelSorting();
            var result        = parcelSorting.CanSortTheParcel(new List <int>()
            {
                100, 35, 90, 35
            });

            Assert.AreEqual(DoesNotFit, result);
        }
Пример #2
0
        public void Test2_ReturnsFits()
        {
            var parcelSorting = new ParcelSorting.ParcelSorting();
            var result        = parcelSorting.CanSortTheParcel(new List <int>()
            {
                100, 35, 75, 50, 80, 100, 37
            });

            Assert.AreEqual(Fits, result);
        }
Пример #3
0
        public void InputDoesNotHavePipeSizes_ReturnsNotEnoughData()
        {
            var parcelSorting = new ParcelSorting.ParcelSorting();
            var result        = parcelSorting.CanSortTheParcel(new List <int>()
            {
                40, 50
            });

            Assert.AreEqual(NotEnoughData, result);
        }
Пример #4
0
        public void Test1_ReturnsFits()
        {
            var parcelSorting = new ParcelSorting.ParcelSorting();
            var result        = parcelSorting.CanSortTheParcel(new List <int>()
            {
                60, 120, 100, 75
            });

            Assert.AreEqual(Fits, result);
        }
Пример #5
0
        public void FirstPipeSizeIsSmallerThanParcelWidth_ReturnsDoesNotFit()
        {
            var parcelSorting = new ParcelSorting.ParcelSorting();
            var result        = parcelSorting.CanSortTheParcel(new List <int>()
            {
                100, 50, 45, 70
            });

            Assert.AreNotEqual(Fits, result);
        }