public void CheckForNullWithMultipleParametersContentOnly(CustomClassType customClassType, IEnumerable rawCollection, IList filteredCollection) { IDisposable suspendToken = null; var filteredCollectionType = filteredCollection.GetType(); if (filteredCollectionType.IsGenericTypeEx() && filteredCollectionType.GetGenericTypeDefinitionEx() == typeof(FastObservableCollection <>)) { suspendToken = (IDisposable)filteredCollectionType.GetMethodEx("SuspendChangeNotifications").Invoke(filteredCollection, null); } filteredCollection.Clear(); // Removed external code for simplicity of test suspendToken?.Dispose(); }
public void CheckForNullWithMultipleParametersWithoutContent(CustomClassType customClassType, IEnumerable rawCollection, IList filteredCollection) { Argument.IsNotNull(() => customClassType); Argument.IsNotNull(() => rawCollection); Argument.IsNotNull(() => filteredCollection); }
public void CheckForNullWithMultipleParametersWithoutContent_Expected(CustomClassType customClassType, IEnumerable rawCollection, IList filteredCollection) { Argument.IsNotNull("customClassType", customClassType); Argument.IsNotNull("rawCollection", rawCollection); Argument.IsNotNull("filteredCollection", filteredCollection); }