public void CompareItems_SortValueIsLessThan_ReturnsMinusOneIfFirstLessThanSecondOrOneOtherwiseWhenInverted()
        {
            Date date1 = new Date(2010, 10, 10);
            Date date2 = new Date(2010, 10, 15);

            IList <Tuple <Value, bool> > list1 = new List <Tuple <Value, bool> >()
            {
                new Tuple <Value, bool>(Value.Get(date1), true)
            };
            IList <Tuple <Value, bool> > list2 = new List <Tuple <Value, bool> >()
            {
                new Tuple <Value, bool>(Value.Get(date2), true)
            };

            Assert.Equal(-1, CompareItems <Post> .SortValueIsLessThan(list1, list2));
            Assert.Equal(1, CompareItems <Post> .SortValueIsLessThan(list2, list1));
        }
        public void CompareItems_SortValueIsLessThan_ReturnsZeroIfValuesAreEqual()
        {
            Date date1 = new Date(2010, 10, 10);
            Date date2 = new Date(2010, 10, 10);

            IList <Tuple <Value, bool> > list1 = new List <Tuple <Value, bool> >()
            {
                new Tuple <Value, bool>(Value.Get(date1), false)
            };
            IList <Tuple <Value, bool> > list2 = new List <Tuple <Value, bool> >()
            {
                new Tuple <Value, bool>(Value.Get(date2), false)
            };

            Assert.Equal(0, CompareItems <Post> .SortValueIsLessThan(list1, list2));
            Assert.Equal(0, CompareItems <Post> .SortValueIsLessThan(list2, list1));
        }
        public void CompareItems_SortValueIsLessThan_IgnoresBalancesAndReturnsZero()
        {
            Balance bal1 = new Balance(new Amount(10));
            Balance bal2 = new Balance(new Amount(10));

            IList <Tuple <Value, bool> > list1 = new List <Tuple <Value, bool> >()
            {
                new Tuple <Value, bool>(Value.Get(bal1), false)
            };
            IList <Tuple <Value, bool> > list2 = new List <Tuple <Value, bool> >()
            {
                new Tuple <Value, bool>(Value.Get(bal2), false)
            };

            Assert.Equal(0, CompareItems <Post> .SortValueIsLessThan(list1, list2));
            Assert.Equal(0, CompareItems <Post> .SortValueIsLessThan(list2, list1));
        }