示例#1
0
        internal void GetDeclareLine_InputOuput_CallsMetadata(Mock <MetadataOracleBoolean> metadata, bool?value, string declareExpected, string name)
        {
            metadata.Setup(m => m.GetDeclareLine(name))
            .Returns(declareExpected)
            .Verifiable();

            var param = new ParamBoolean(value, ParameterDirection.InputOutput, metadata.Object);

            param.SetParameterName(name);

            var declare = param.GetDeclareLine();

            Assert.Equal(declareExpected, declare);
            metadata.Verify();
        }
示例#2
0
        public void GetDeclareLine_Input_ReturnsNull()
        {
            var param = new ParamBoolean(true, ParameterDirection.Input);

            Assert.Null(param.GetDeclareLine());
        }