public void Generate_AddsImports()
        {
            var ns        = new CodeNamespace("ANamespace");
            var generator = new ImportsGenerator(null);

            generator.Generate(ns, null);
            Assert.That(
                new[]
            {
                "global::System",
                "global::Umbraco.CodeGen.Annotations"
            }.SequenceEqual(
                    ns.Imports.Cast <CodeNamespaceImport>()
                    .Select(import => import.Namespace)
                    ));
        }
        public void Generate_AddsImports()
        {
            var ns        = new CodeNamespace("ANamespace");
            var generator = new ImportsGenerator(null);

            generator.Generate(ns, null);
            Assert.That(
                new[]
            {
                "System",
                "System.ComponentModel",
                "System.ComponentModel.DataAnnotations",
                "Umbraco.Core.Models",
                "Umbraco.Web"
            }.SequenceEqual(
                    ns.Imports.Cast <CodeNamespaceImport>()
                    .Select(import => import.Namespace)
                    ));
        }