title: Writing Test class for Currency Conversion Trigger
body: <p>I need little assistance in writing a test class for this trigger that converts the record currency to org currency. Can anyone please assist/guide? Please.</p>
  
  <pre><code>trigger convertToEuro on CustomObject(before update) { 
  
  List&lt;CurrencyType&gt; currencyTypeList = [select id,IsoCode,ConversionRate from CurrencyType where isActive = true] ;
  
  Map&lt;String , Decimal&gt; isoWithRateMap = new Map&lt;String, Decimal&gt;();
  
  for(CurrencyType c : currencyTypeList) {
  
      isoWithRateMap.put(c.IsoCode , c.ConversionRate) ;
  
  }
  
  for(CustomObject ce: trigger.new){
  
      if(ce.CurrencyIsoCode != 'EUR' &amp;&amp; isoWithRateMap.containsKey(ce.CurrencyIsoCode)){
  
          ce.Amount_Converted__c = ce.ffps_iv__Amount__c/ isoWithRateMap.get(ce.CurrencyIsoCode);
  
      }
  
  }
  </code></pre>
  
  <p>}</p>