예제 #1
0
        public void CanAct_NoopAction_ReturnTrue()
        {
            var subject = new UnitImpl();
            var noop    = new NoopAction();

            Assert.True(subject.CanAttemptAction(noop));
        }
예제 #2
0
        public void ResetDisplay_SetAllFeaturesToZero()
        {
            //Setup
            var subject = new UnitImpl();
            var display = new Mock <SensoryDisplay>();

            subject.SetDisplay(display.Object);

            //Act
            subject.ResetDisplay();

            //Assert
            display.Verify(d => d.Reset());
        }