public void MangerUnRhinoceros_QuandLionNAPasFaim_AlorsRetourneNull() { //Arrange _lion.AFaim = false; //Act IRhinoceros rhinoceros = _savane.MangerUnRhinoceros(); //Assert rhinoceros.Should().BeNull(); }
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(); }