Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @ParameterizedTest @MethodSource("parameters") void shouldMapToJavaObject(AnyValue value)
        internal virtual void ShouldMapToJavaObject(AnyValue value)
        {
            // given
            ValueMapper <object> mapper = new Mapper();

            // when
            object mapped = value.Map(mapper);

            // then
            assertEquals(value, ValueOf(mapped));
        }
Example #2
0
 public static Value CoerceToBoolean(AnyValue value)
 {
     return(value.Map(_booleanMapper));
 }