public void GetFeature_ReturnsFeature() { // Arrange var feature = new TestFeature(); var provider = new FeatureProvider(new IFeature[] { feature }); // Act var result = provider.GetFeature(TestFeature.TestFeatureId); // Assert Assert.NotNull(result); Assert.Same(feature, result); }
public void Features_ReturnsFeatures() { // Arrange var feature = new TestFeature(); var provider = new FeatureProvider(new IFeature[] { feature }); // Act var features = provider.Features; // Assert Assert.NotNull(features); Assert.Contains(features, f => f == feature); }