Beispiel #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldHandleByteArrays()
        internal virtual void ShouldHandleByteArrays()
        {
            // Given
            Value         array   = Values.byteArray(new sbyte[] { 2, 3, 42 });
            PrettyPrinter printer = new PrettyPrinter();

            // When
            array.WriteTo(printer);

            // Then
            assertThat(printer.Value(), equalTo("[2, 3, 42]"));
        }