Esempio n. 1
0
        private void DestroyReaders(SipMessageReader[] readers, int skip, bool validate)
        {
            for (int i = 0; i < readers.Length; i++)
            {
                Assert.IsFalse(SipMessageReader.IsArraySlotAvailable(readers[i].Index), "Slot #" + readers[i].Index);
            }

            for (int i = skip; i < readers.Length; i++)
            {
                int index = readers[i].Index;

                readers[i].Dispose();
                if (validate)
                {
                    Assert.IsTrue(SipMessageReader.IsArraySlotAvailable(index), "Slot #" + index);
                }
            }
        }