public void LoadDefaultFeatureSet_Loads_All_ProjectType_Features()
        {
            var defaultFeatureSet       = FeatureSetLoader.LoadDefaultFeatureSet();
            var projectTypeFeatureNames = defaultFeatureSet.CompiledFeatures.Select(f => f.Name);

            var expectedFeatureNames = new[] { nameof(AspNetMvcFeature), nameof(AspNetWebApiFeature), nameof(WebClassLibraryFeature) };

            CollectionAssert.AreEquivalent(expectedFeatureNames, projectTypeFeatureNames);
        }
Beispiel #2
0
        public void FeatureDetector_Default_Constructor_Loads_All_ProjectType_Features()
        {
            var defaultFeatureDetector = new FeatureDetector();
            var defaultFeatureSet      = FeatureSetLoader.LoadDefaultFeatureSet();

            var loadedFeatureNames  = defaultFeatureDetector.LoadedFeatureSet.CompiledFeatures.Select(f => f.Name);
            var defaultFeatureNames = defaultFeatureSet.CompiledFeatures.Select(f => f.Name);

            var difference = defaultFeatureNames.Except(loadedFeatureNames);

            Assert.IsNotEmpty(defaultFeatureNames);
            Assert.IsNotEmpty(loadedFeatureNames);
            Assert.IsEmpty(difference);
        }
Beispiel #3
0
 public FeatureDetector() : this(FeatureSetLoader.LoadDefaultFeatureSet())
 {
 }