예제 #1
0
        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();
        }
예제 #2
0
 public void CheckForNullWithMultipleParametersWithoutContent(CustomClassType customClassType, IEnumerable rawCollection, IList filteredCollection)
 {
     Argument.IsNotNull(() => customClassType);
     Argument.IsNotNull(() => rawCollection);
     Argument.IsNotNull(() => filteredCollection);
 }
예제 #3
0
 public void CheckForNullWithMultipleParametersWithoutContent_Expected(CustomClassType customClassType, IEnumerable rawCollection, IList filteredCollection)
 {
     Argument.IsNotNull("customClassType", customClassType);
     Argument.IsNotNull("rawCollection", rawCollection);
     Argument.IsNotNull("filteredCollection", filteredCollection);
 }