public void WhenGettingImportsAndElementNamespaceWasDefined_ThenReturnsDefaultImportsAndElementNamespace()
        {
            var processor = new ModelElementDirectiveProcessor();

            CallContext.LogicalSetData(ModelElementDirectiveProcessor.KeyCallContextElementNamespace, "FooNamespace");
            var imports = processor.GetImportsForProcessingRun();

            Assert.True(imports.Contains("FooNamespace"));
        }
        public void WhenGettingImports_ThenReturnsDefaultImports()
        {
            var processor = new ModelElementDirectiveProcessor();

            var imports = processor.GetImportsForProcessingRun();

            Assert.True(imports.Contains(typeof(System.Linq.IQueryable).Namespace));
            Assert.True(imports.Contains(typeof(System.Collections.Generic.IEnumerable <>).Namespace));
            Assert.True(imports.Contains(typeof(Microsoft.VisualStudio.Modeling.Integration.IModelBus).Namespace));
        }
        public void WhenGettingImportsAndElementNamespaceWasDefined_ThenReturnsDefaultImportsAndElementNamespace()
        {
            var processor = new ModelElementDirectiveProcessor();

            CallContext.LogicalSetData(ModelElementDirectiveProcessor.KeyCallContextElementNamespace, "FooNamespace");
            var imports = processor.GetImportsForProcessingRun();

            Assert.True(imports.Contains("FooNamespace"));
        }
        public void WhenGettingImports_ThenReturnsDefaultImports()
        {
            var processor = new ModelElementDirectiveProcessor();

            var imports = processor.GetImportsForProcessingRun();

            Assert.True(imports.Contains(typeof(System.Linq.IQueryable).Namespace));
            Assert.True(imports.Contains(typeof(System.Collections.Generic.IEnumerable<>).Namespace));
            Assert.True(imports.Contains(typeof(Microsoft.VisualStudio.Modeling.Integration.IModelBus).Namespace));
        }