Esempio n. 1
0
        public void GetBundlesHighesValueFirst_ShouldReturnBundlesInDescendingOrder()
        {
            Bundles sut = new Bundles();

            List <Bundle> bundles          = sut.GetBundlesHighesValueFirst();
            List <Bundle> reorderedBundles = bundles.OrderByDescending(b => b.Value).ToList();

            CollectionAssert.AreEqual(reorderedBundles, bundles);
        }