public void CallProcedureWithParameterValueAndSizeAttributeLongerThanProcedureParameterLength_TruncatesValueOncedPassedToStoredProcedure()
        {
            // ARRANGE
            const int expectedTruncatedLength = 20;
            const string initialValue = @"123456789012345678901234567890";
            var parameters = new TooLargeSizeAttributeStoredProcedure.Parameter
            {
                Value1 = initialValue
            };
            var procedure = new TooLargeSizeAttributeStoredProcedure(parameters);

            // ACT
            var resultSet = Context.ExecuteStoredProcedure(procedure);
            var result = resultSet.First();

            // ASSERT
            Assert.AreEqual(expectedTruncatedLength, result.Value1.Length);
        }
        public void CallProcedureWithSizeAttributeLargerThanProcedure_ThrowsException()
        {
            // ARRANGE
            const string initialValue = @"123456789012345678901234567890";
            var parameters = new TooLargeSizeAttributeStoredProcedure.Parameter
            {
                Value1 = initialValue
            };
            var procedure = new TooLargeSizeAttributeStoredProcedure(parameters);

            // ACT
            Context.ExecuteStoredProcedure(procedure);

            // ASSERT
            // Exception should have been thrown by here!
        }