@isTest
private class FieldInfoTest {
    static testMethod void testMethod1() {
        
        FieldInfo source = new FieldInfo();
        source.TypeEnumName = 'sourcetest';
        source.Label = 'source';
        source.Name = 'sourcetest';
        source.Value = new Account();
        FieldInfo target = new FieldInfo();
        Test.startTest();
        FieldInfo.CopyTo(source,target);
        Test.stopTest();
    }
    static testMethod void testMethod2() {
    	List<Option> oList = new List<Option>();
        Option opt1 = new Option();
        opt1.label = 'A';
        opt1.value = '1';
        opt1.Selected = false;
        oList.add(opt1);
        Option opt2 = new Option();
        opt2.label = 'B';
        opt2.value = '2';
        opt2.Selected = false;
        oList.add(opt2);
        Option opt3 = new Option();
        opt3.label = 'C';
        opt3.value = '3';
        opt3.Selected = true;
        oList.add(opt3);
        

        Test.startTest();
        FieldInfo fi = new FieldInfo(); 
        fi.Options = oList;
        fi.GetFirstItemByLabel('C');
        fi.GetFirstItemByValue('3');
        Test.stopTest();
    }
}