Пример #1
0
        public void Can_assign_box_to_campus()
        {
            var box = new Box();
            Assert.Null(box.Campus);

            box.RelocateBox(Campus.StPius);

            Assert.Equal("St. Pius", box.Campus.DisplayName);
        }
Пример #2
0
        public void Can_relocate_box_to_new_campus()
        {
            var box = new Box(campus: Campus.StPius);

            Assert.Equal("St. Pius", box.Campus.DisplayName);

            box.RelocateBox(Campus.StRose);

            Assert.Equal("St. Rose of Lima", box.Campus.DisplayName);
        }