Exemplo n.º 1
0
        public void throws_error_if_value_doesnt_exist()
        {
            DaysCollection week = new DaysCollection();

            Assert.Throws <ArgumentOutOfRangeException>(() => week["Whatever"]);
        }
Exemplo n.º 2
0
        public void throws_error_if_value_doesnt_exist() {

            DaysCollection week = new DaysCollection();

            Assert.Throws<ArgumentOutOfRangeException>(() => week["Whatever"]);
        }
Exemplo n.º 3
0
        public void get_value_from_indexer()
        {
            DaysCollection week = new DaysCollection();

            Assert.Equal(5, week["Fri"]);
        }
Exemplo n.º 4
0
        public void get_value_from_indexer() {

            DaysCollection week = new DaysCollection();

            Assert.Equal(5, week["Fri"]);
        }