public void CrearTransporte_Caso_CrearCamion() { LogisticaTerrestre logisticaTerrestre = new LogisticaTerrestre(); ITransporte camion = logisticaTerrestre.CrearTransporte(true); string tipo = camion.ObtenerTipo(); Assert.Equal(TipoLogistica.Camion, tipo); }
protected override void When() { try { _result = _sut.CrearTransporte(); } catch (Exception exception) { _exception = exception; } }