Azavea.Open.Common.Tests.CollectionTests.AssertDictionaryNoException C# (CSharp) Method

AssertDictionaryNoException() private method

private AssertDictionaryNoException ( DictionaryCaller callMe ) : void
callMe DictionaryCaller
return void
        private void AssertDictionaryNoException(DictionaryCaller callMe)
        {
            try
            {
                callMe.Invoke(_testOld);
            }
            catch (Exception e)
            {
                Assert.Fail("Original dictionary threw an exception: " + e);
            }
            try
            {
                callMe.Invoke(_testChecked);
            }
            catch (Exception e)
            {
                Assert.Fail("Checked dictionary threw an exception: " + e);
            }
        }