public void TestNullable2() { NullableEntity e = new NullableEntity(); int? @outputID; string @inputOutputStr = "20"; e.str = "20"; DataAccessor.CreateInstance <TestNullableAccessor>() .OutRefTest(out @outputID, e, ref @inputOutputStr); Assert.IsNull(@outputID); Assert.AreEqual("20", e.outputStr); Assert.IsNull(e.inputOutputID); Assert.AreEqual("2040", @inputOutputStr); }
public void TestNullable2() { NullableEntity e = new NullableEntity(); int? @outputID; string @inputOutputStr = "20"; e.str = "20"; DataAccessor.CreateInstance<TestNullableAccessor>() .OutRefTest(out @outputID, e, ref @inputOutputStr); Assert.IsNull (@outputID); Assert.AreEqual("20", e.outputStr); Assert.IsNull (e.inputOutputID); Assert.AreEqual("2040", @inputOutputStr); }
public abstract void OutRefTest( out int? @outputID, [Direction.InputOutput("inputOutputID", "inputOutputStr"), Direction.Output("outputStr", "outputID")] NullableEntity entity, ref string @inputOutputStr);