Ejemplo n.º 1
0
        public void Matches()
        {
            var matcher = new PropertyMatcher().With(c => ((TestComponent)c).Foo, 1).With(c => ((TestComponent)c).Bar, 2);

            Assert.True(matcher.Matches(2, nameof(TestComponent.Bar)));
            Assert.False(matcher.Matches(1, nameof(TestComponent.Bar)));
        }
Ejemplo n.º 2
0
 public bool PropertyUsed(int componentId, string propertyName)
 => _matcher.Matches(componentId, propertyName);