Ejemplo n.º 1
0
        public void NotContains()
        {
            var valid    = new TestAsset(1, Array.Empty <IComponent>());
            var notValid = new Asset(2, Array.Empty <IComponent>());

            var filter = new AssetGroup <TestAsset>(new[] { valid, notValid });

            filter.Should().Contain(asset => asset.Id == valid.Id);
            filter.Should().NotContain(asset => asset.Id == notValid.Id);
        }