コード例 #1
0
        public void Ctor_WithValidFeatureSet_FeaturesAreAdded()
        {
            var features = new[] { new TestFeature(), new TestFeature2(), new TestFeature3() };
            var provider = new InMemoryFeatureProvider(features);

            var featureSet = provider.GetAllFeatures().ToList();

            featureSet.Should().Count.Exactly(features.Length);

            foreach (var feature in features)
            {
                featureSet.Should().Contain.Item(feature);
            }
        }
コード例 #2
0
        public void Ctor_WithValidFeatureSet_FeaturesAreAdded()
        {
            var features = new[] { new TestFeature(), new TestFeature2(), new TestFeature3() };
            var provider = new InMemoryFeatureProvider(features);

            var featureSet = provider.GetAllFeatures().ToList();

            featureSet.Should().Count.Exactly(features.Length);

            foreach (var feature in features)
            {
                featureSet.Should().Contain.Item(feature);
            }
        }
コード例 #3
0
        public void Ctor_WithEmptyFeatureSet_NoFeaturesAreAdded()
        {
            var provider = new InMemoryFeatureProvider(new IFeature[] { });

            provider.GetAllFeatures().Should().Be.Empty();
        }
コード例 #4
0
        public void Ctor_WithEmptyFeatureSet_NoFeaturesAreAdded()
        {
            var provider = new InMemoryFeatureProvider(new IFeature[] { });

            provider.GetAllFeatures().Should().Be.Empty();
        }