public void CrearTransporte_Caso_CrearBarco() { LogisticaMaritima logisticaTerrestre = new LogisticaMaritima(); ITransporte barco = logisticaTerrestre.CrearTransporte(true); string tipo = barco.ObtenerTipo(); Assert.Equal(TipoLogistica.Barco, tipo); }
protected override void When() { try { _result = _sut.CrearTransporte(); } catch (Exception exception) { _exception = exception; } }