Ejemplo n.º 1
0
            internal virtual void VerifyWriteTo()
            {
                BufferValueWriter writer = new BufferValueWriter();

                Value.writeTo(writer);
                writer.AssertBuffer(Expected);
            }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldBeAbleToThrowFromValueWriter()
        internal virtual void ShouldBeAbleToThrowFromValueWriter()
        {
            // Given
            Value value = Values.Of("This is a value");
//JAVA TO C# CONVERTER TODO TASK: Method reference constructor syntax is not converted by Java to C# Converter:
            ValueWriter <TestException> writer = throwing(TestException::new);

            // Expect
            assertThrows(typeof(TestException), () => value.writeTo(writer));
        }