dublicated Arguments List when call AllStoredProcedures several times

Aug 5, 2014 at 8:03 AM
Edited Aug 5, 2014 at 8: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"); 
        }
Coordinator
Aug 5, 2014 at 3:20 PM
Just checked in a fix. Thanks for the test!