Skip to content

System.ArgumentException: An item with the same key has already been added. #20

Description

@kiquenet

Test method TestsUnitarios.TestsVCF.Leer_Vcard_Contactos threw exception:
System.ArgumentException: An item with the same key has already been added.

Don't work: TEL;TYPE=WORK;TYPE=PREF:6xx-xxx-xxx

Work: TEL;TYPE=CELL:6xx-xxx-xxx

Test Name: Leer_Vcard_Contactos
Test Outcome: Failed
Result StackTrace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at MixERP.Net.VCards.Parser.TokenParser.GetAdditionalKeyMembers(String data) at MixERP.Net.VCards.Parser.TokenParser.GetToken(String line) at MixERP.Net.VCards.Parser.TokenParser.Parse(String contents) at MixERP.Net.VCards.Deserializer.GetVCard(String contents) at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at MixERP.Net.VCards.Deserializer.GetVCards(String contents)
at TestsUnitarios.TestsVCF.Leer_Vcard_Contactos() in
\GMailManager\Tests\TestsUnitarios\TestsVCF.cs:line 37
Result Message:

System.ArgumentException: An item with the same key has already been added.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions