Beispiel #1
0
        public void ItIsDeadWhenItsHealthIsZero()
        {
            unity.InitialHealth.Returns(0);
            var cellPhone = new StandardUnit(conflictResolver, unity);

            Assert.IsFalse(cellPhone.Alive());
        }
Beispiel #2
0
        public void ItIsAliveWhenItsHealthIsNotZero()
        {
            unity.InitialHealth.Returns(10);
            var cellPhone = new StandardUnit(conflictResolver, unity);

            Assert.IsTrue(cellPhone.Alive());
        }
        public void ItIsDeadWhenItsHealthIsZero()
        {
            unity.InitialHealth.Returns (0);
            var cellPhone = new StandardUnit(conflictResolver, unity);

            Assert.IsFalse (cellPhone.Alive ());
        }
        public void ItIsAliveWhenItsHealthIsNotZero()
        {
            unity.InitialHealth.Returns(10);
            var cellPhone = new StandardUnit(conflictResolver, unity);

            Assert.IsTrue (cellPhone.Alive ());
        }