private static void AssertObjectDisposed(object instance, ObjectDisposedException actual, int retryCount) { string objectName = instance.GetType().FullName; Assert.AreEqual(objectName, actual.ObjectName, "Retry Count {0}: Expected {1}.ObjectName to be '{2}', however, '{3}' is.", retryCount, actual.GetType().Name, objectName, actual.ObjectName); }