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); } }
public void Ctor_WithEmptyFeatureSet_NoFeaturesAreAdded() { var provider = new InMemoryFeatureProvider(new IFeature[] { }); provider.GetAllFeatures().Should().Be.Empty(); }