Exemple #1
0
        public static void AssertCollectionNotChanged <T>(this IMonitor <T> monitor, params IEnumerable[] collections)
        {
            var expectedTypesOfItemsUnchanged = collections.Select(GetGenericType).ToArray();
            var typesOfItemsChanged           = monitor.GetGenericTypesFromCollectionsChanged();

            expectedTypesOfItemsUnchanged.Should().NotContain(
                given => typesOfItemsChanged.Any(
                    gotten => given.IsAssignableFrom(gotten)));
        }