Esempio n. 1
0
        public void MangerUnRhinoceros_QuandLionNAPasFaim_AlorsRetourneNull()
        {
            //Arrange
            _lion.AFaim = false;

            //Act
            IRhinoceros rhinoceros = _savane.MangerUnRhinoceros();

            //Assert
            rhinoceros.Should().BeNull();
        }
Esempio n. 2
0
        public void MangerUnRhinoceros_QuandLionAFaimEtRhinocerosNEstPasMort_AlorsRetourneNull()
        {
            //Arrange
            _lion.AFaim = true;
            _lion.Stub(x => x.Attaquer(_rhinoceros)).Return(false);

            //Act
            IRhinoceros rhinoceros = _savane.MangerUnRhinoceros();

            //Assert
            rhinoceros.Should().BeNull();
        }