[CBOR] Implement Write/ReadEncodedValue() methods (#34650)
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Wed, 8 Apr 2020 20:20:38 +0000 (21:20 +0100)
committerGitHub <noreply@github.com>
Wed, 8 Apr 2020 20:20:38 +0000 (21:20 +0100)
commitcb2308b56959175f41fd5a1dbc64660ab6d60c2a
treeff2016ff0a9652647a5b8f8760139bed820ff1dc
parent10828e147d1c678ef1f6ab6e258f601d58b9f7e8
[CBOR] Implement Write/ReadEncodedValue() methods (#34650)

* Implement CBOR Write/ReadEncodedValue() methods

* Wrap utf8 encoding and decoding exceptions in ArgumentException and FormatException respectively

* Address feedback

* address feedback

* add contextual tests for WriteEncodedValue
src/libraries/System.Security.Cryptography.Encoding/tests/Cbor.Tests/CborReaderTests.Helpers.cs
src/libraries/System.Security.Cryptography.Encoding/tests/Cbor.Tests/CborReaderTests.SkipValue.cs
src/libraries/System.Security.Cryptography.Encoding/tests/Cbor.Tests/CborReaderTests.String.cs
src/libraries/System.Security.Cryptography.Encoding/tests/Cbor.Tests/CborReaderTests.cs
src/libraries/System.Security.Cryptography.Encoding/tests/Cbor.Tests/CborWriterTests.Helpers.cs
src/libraries/System.Security.Cryptography.Encoding/tests/Cbor.Tests/CborWriterTests.String.cs
src/libraries/System.Security.Cryptography.Encoding/tests/Cbor.Tests/CborWriterTests.cs
src/libraries/System.Security.Cryptography.Encoding/tests/Cbor/CborReader.String.cs
src/libraries/System.Security.Cryptography.Encoding/tests/Cbor/CborReader.cs
src/libraries/System.Security.Cryptography.Encoding/tests/Cbor/CborWriter.String.cs
src/libraries/System.Security.Cryptography.Encoding/tests/Cbor/CborWriter.cs