Exemple #1
0
        /// <summary>
        /// Attempts to retrieve <see cref="_ITestMethodMetadata"/> from the cache, and if present,
        /// removes the metadata from the cache.
        /// </summary>
        /// <param name="message">The message that indicates which metadata to retrieve.</param>
        /// <returns>The cached metadata, if present; or <c>null</c> if there isn't any.</returns>
        public _ITestMethodMetadata?TryRemove(_TestMethodFinished message)
        {
            Guard.ArgumentNotNull(nameof(message), message);

            return((_ITestMethodMetadata?)InternalGetAndRemove(message.TestMethodUniqueID, true));
        }