Exemplo n.º 1
0
        public void SortIntoDateGroups_GroupedfixturesCountShouldBeNonZero()
        {
            var fvm = new FixturesViewModel();

            var actual = fvm.SortIntoDateGroups(fixtures);

            Assert.Equal(3, actual.Count);
        }
Exemplo n.º 2
0
        public void SortIntoDateGroups_RangeCollectionShouldContainJan()
        {
            var             fvm      = new FixturesViewModel();
            GroupedFixtures expected = new GroupedFixtures()
            {
                LongName = "January", ShortName = "Jan"
            };

            expected.Add(fixtures[0]);

            var actual = fvm.SortIntoDateGroups(fixtures);

            Assert.Contains(expected, actual);
        }