//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldMapSimpleRecordWithString() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldMapSimpleRecordWithString() { // When System.Reflection.MethodInfo echo = typeof(ClassWithProcedureWithSimpleArgs).GetMethod("echo", typeof(string)); IList <FieldSignature> signature = (new MethodSignatureCompiler(new TypeMappers())).SignatureFor(echo); // THen assertThat(signature, contains(FieldSignature.inputField("name", Neo4jTypes.NTString))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void subClusterRoutingProcedureShouldHaveCorrectSignature() public virtual void SubClusterRoutingProcedureShouldHaveCorrectSignature() { GetRoutersForDatabaseProcedure proc = new GetRoutersForDatabaseProcedure(null, Config.defaults()); ProcedureSignature procSig = proc.Signature(); IList <FieldSignature> input = Collections.singletonList(FieldSignature.inputField("database", Neo4jTypes.NTString)); IList <FieldSignature> output = Arrays.asList(FieldSignature.outputField("ttl", Neo4jTypes.NTInteger), FieldSignature.outputField("routers", Neo4jTypes.NTList(Neo4jTypes.NTMap))); assertEquals("The input signature of the GetRoutersForDatabaseProcedure should not change.", procSig.InputSignature(), input); assertEquals("The output signature of the GetRoutersForDatabaseProcedure should not change.", procSig.OutputSignature(), output); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldHaveCorrectSignature() public virtual void ShouldHaveCorrectSignature() { // given GetServersProcedureForMultiDC proc = new GetServersProcedureForMultiDC(null); // when ProcedureSignature signature = proc.Signature(); // then assertThat(signature.InputSignature(), containsInAnyOrder(FieldSignature.inputField("context", NTMap))); assertThat(signature.OutputSignature(), containsInAnyOrder(FieldSignature.outputField("ttl", NTInteger), FieldSignature.outputField("servers", NTList(NTMap)))); }