This project has moved and is read-only. For the latest updates, please go here.

dublicated Arguments List when call AllStoredProcedures several times

Aug 5, 2014 at 9:03 AM
Edited Aug 5, 2014 at 9:08 AM
Just faced with the issue. Below is the my test to demonstrate it. It seems that when run AllStoredProcedures() Arguments data is not cleaned before

Result Message: Assert.AreEqual failed. Expected:<1>. Actual:<2>. Number of args changed
        [TestMethod]
        public void DublicatedArgumentsDemo()
        {
            var dbReader = TestHelper.GetNorthwindReader();
            var procedures = dbReader.AllStoredProcedures();

            var proc = procedures.First(
                x => x.Name == "CustOrderHist");
            var argsNumber = proc.Arguments.Count();

            dbReader.AllStoredProcedures();
            Assert.AreEqual(argsNumber, 
                            proc.Arguments.Count(), 
                            "Number of args changed"); 
        }
Aug 5, 2014 at 4:20 PM
Just checked in a fix. Thanks for the test!