コード例 #1
0
        public void MangerUnRhinoceros_QuandLionNAPasFaim_AlorsRetourneNull()
        {
            //Arrange
            _lion.AFaim = false;

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

            //Assert
            rhinoceros.Should().BeNull();
        }
コード例 #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();
        }