示例#1
0
        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);
        }
示例#2
0
        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);
        }