/// <summary> /// Unregisters the specified <see cref="IUnitTestStudyProvider"/> from the <see cref="UnitTestStudyLoader"/>. /// </summary> /// <remarks> /// <para>This method is thread safe.</para> /// </remarks> /// <param name="provider">The <see cref="IUnitTestStudyProvider"/> to be unregistered.</param> public static void UnregisterStudyProvider(IUnitTestStudyProvider provider) { Platform.CheckForNullReference(provider, "provider"); lock (_syncLock) { _providers.Remove(provider); } }
/// <summary> /// Registers a <see cref="IUnitTestStudyProvider"/> with the <see cref="UnitTestStudyLoader"/>. /// </summary> /// <remarks> /// <para>This method is thread safe.</para> /// </remarks> /// <param name="provider">The <see cref="IUnitTestStudyProvider"/> to be registered.</param> public static void RegisterStudyProvider(IUnitTestStudyProvider provider) { Platform.CheckForNullReference(provider, "provider"); lock (_syncLock) { if (!_providers.Contains(provider)) { _providers.Add(provider); } } }
/// <summary> /// Registers a <see cref="IUnitTestStudyProvider"/> with the <see cref="UnitTestStudyLoader"/>. /// </summary> /// <remarks> /// <para>This method is thread safe.</para> /// </remarks> /// <param name="provider">The <see cref="IUnitTestStudyProvider"/> to be registered.</param> public static void RegisterStudyProvider(IUnitTestStudyProvider provider) { Platform.CheckForNullReference(provider, "provider"); lock (_syncLock) { if (!_providers.Contains(provider)) _providers.Add(provider); } }