public static void A_ConstructСlosedTypesBasedOnGenericWithSeveralParameters() { var vehicleWithAutomaticTransmission = new EquippedVehicle <AutomaticTransmission, GasEngine>(200); var vehicleWithManualTransmission = new EquippedVehicle <ManualTransmission, DieselEngine>(240); vehicleWithManualTransmission.GetType() .BaseType .Should() .Be(vehicleWithAutomaticTransmission.GetType().BaseType); }
public static void A_ConstructСlosedTypesBasedOnGenericWithOneParameter() { var vehicleWithAutomaticTransmission = new EquippedVehicle <AutomaticTransmission>(200); var vehicleWithManualTransmission = new EquippedVehicle <ManualTransmission>(240); vehicleWithManualTransmission.GetType() .BaseType .Should() .Be(vehicleWithAutomaticTransmission.GetType().BaseType); }