Esempio n. 1
0
        public void CheckFromGetValues()
        {
            Weekday[] weekdays = Weekday.GetAll();

            Assert.Collection(weekdays,
                              day => Assert.Equal("Monday", day.Value),
                              day => Assert.Equal("Tuesday", day.Value),
                              day => Assert.Equal("Wednesday", day.Value),
                              day => Assert.Equal("Thursday", day.Value),
                              day => Assert.Equal("Friday", day.Value),
                              day => Assert.Equal("Saturday", day.Value),
                              day => Assert.Equal("Sunday", day.Value)
                              );
        }