//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SafeVarargs private final <T> void shouldOverride(System.Func<T,org.neo4j.unsafe.impl.batchimport.Configuration> configFactory, System.Func<org.neo4j.unsafe.impl.batchimport.Configuration,T> getter, T... values) private void ShouldOverride <T>(System.Func <T, Configuration> configFactory, System.Func <Configuration, T> getter, params T[] values) { foreach (T value in values) { // given Configuration configuration = configFactory(value); WrappedBatchImporterConfigurationForNeo4jAdmin vanilla = new WrappedBatchImporterConfigurationForNeo4jAdmin(DEFAULT); // when WrappedBatchImporterConfigurationForNeo4jAdmin wrapped = new WrappedBatchImporterConfigurationForNeo4jAdmin(configuration); // then assertEquals(getter(vanilla), getter(wrapped)); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SafeVarargs private final <T> void shouldDelegate(System.Func<T,org.neo4j.unsafe.impl.batchimport.Configuration> configFactory, System.Func<org.neo4j.unsafe.impl.batchimport.Configuration,T> getter, T... expectedValues) private void ShouldDelegate <T>(System.Func <T, Configuration> configFactory, System.Func <Configuration, T> getter, params T[] expectedValues) { foreach (T expectedValue in expectedValues) { // given Configuration configuration = configFactory(expectedValue); // when WrappedBatchImporterConfigurationForNeo4jAdmin wrapped = new WrappedBatchImporterConfigurationForNeo4jAdmin(configuration); // then assertEquals(expectedValue, getter(wrapped)); } // then assertEquals(getter(DEFAULT), getter(new WrappedBatchImporterConfigurationForNeo4jAdmin(DEFAULT))); }