Пример #1
0
        public void DetectFeaturesInSolution_Detects_Features_In_Specified_Solution()
        {
            const string mvcFeature               = "AspNetMvcFeature";
            const string webApiFeature            = "AspNetWebApiFeature";
            const string sqlServerProviderFeature = "SqlServerProviderFeature";
            const string postgresProviderFeature  = "PostgresProviderFeature";

            var results = FeatureDetector.DetectFeaturesInSolution(TestProjectsSetupFixture.MvcSolutionPath);

            var mvcResults = results[TestProjectsSetupFixture.MvcProjectPath];

            Assert.True(mvcResults.FeatureStatus[mvcFeature]);
            Assert.False(mvcResults.FeatureStatus[webApiFeature]);
            Assert.False(mvcResults.FeatureStatus[sqlServerProviderFeature]);
            Assert.False(mvcResults.FeatureStatus[postgresProviderFeature]);
        }