コード例 #1
0
        public void ShouldLightThirdBulbWhenIndex2IsProvided()
        {
            //GIVEN
            var realDisplay = Substitute.For <Display>();
            var driver      = CompositionRoot.CreateDriver(realDisplay);

            //WHEN
            driver.Send(2);

            //THEN
            realDisplay.Received(1).Put(
                "...",
                "..|",
                "...",
                "...",
                "...");
        }
コード例 #2
0
        public void ShouldLighNoBulbsWhenEmptyArrayIsProvided()
        {
            //GIVEN
            var realDisplay = Substitute.For <Display>();
            var driver      = CompositionRoot.CreateDriver(realDisplay);

            //WHEN
            driver.Send();

            //THEN
            realDisplay.Received(1).Put(
                "...",
                "...",
                "...",
                "...",
                "...");
        }