Exemplo n.º 1
0
        public static void AssertPropertyNotChanged <T>(this IMonitor <T> monitor, params string[] properties)
        {
            var propertiesChanged = monitor.GetChangedProperties();
            var except            = propertiesChanged.Except(properties);

            except.Should().BeEquivalentTo(propertiesChanged);
        }
Exemplo n.º 2
0
        public static void AssertPropertyChanged <T>(this IMonitor <T> monitor, params string[] properties)
        {
            var propertiesChanged = monitor.GetChangedProperties();
            var intersec          = propertiesChanged.Intersect(properties);

            intersec.Should().BeEquivalentTo(properties);
        }