Changeset 129 for trunk/UTest.pas
- Timestamp:
- Apr 9, 2022, 11:52:13 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTest.pas
r128 r129 4 4 5 5 uses 6 Classes, SysUtils, Generics.Collections, U Contact;6 Classes, SysUtils, Generics.Collections, UVCard; 7 7 8 8 type … … 64 64 implementation 65 65 66 uses 67 UVCardFile; 68 66 69 resourcestring 67 70 SExpected = 'Expected:'; … … 84 87 Lines := TStringList.Create; 85 88 try 86 with T ContactsFile.Create do89 with TVCardFile.Create do 87 90 try 88 91 Lines.Text := Input; 89 LoadFromStrings(Lines);90 if ContactIndex < Contacts.Count then begin91 PropertyValue := Contacts[ContactIndex].Fields[Index];92 VCard.LoadFromStrings(Lines); 93 if ContactIndex < VCard.Contacts.Count then begin 94 PropertyValue := VCard.Contacts[ContactIndex].Fields[Index]; 92 95 Evaluate(PropertyValue = Value); 93 96 end else Fail; … … 112 115 Lines := TStringList.Create; 113 116 try 114 with T ContactsFile.Create do117 with TVCardFile.Create do 115 118 try 116 119 Lines.Text := Input; 117 LoadFromStrings(Lines);120 VCard.LoadFromStrings(Lines); 118 121 119 122 if Action = akRemoveExactDuplicates then 120 Contacts.RemoveExactDuplicates;123 VCard.Contacts.RemoveExactDuplicates; 121 124 122 125 Lines.Text := ''; 123 SaveToStrings(Lines);126 VCard.SaveToStrings(Lines); 124 127 Evaluate(Lines.Text = Output); 125 128 Log := SExpected + LineEnding +
Note:
See TracChangeset
for help on using the changeset viewer.