public static void GetBuiltInDirectivesReturnsTheSameListWhenCalledMultipleTimesToAvoidRebuildingItUnnecessarily()
        {
            IEnumerable <DirectiveDescriptor> list1 = DirectiveDescriptor.GetBuiltInDirectives();
            IEnumerable <DirectiveDescriptor> list2 = DirectiveDescriptor.GetBuiltInDirectives();

            Assert.Same(list1, list2);
        }
        public static void GetBuiltInDirectivesReturnsReadOnlyListOfBuiltInDirectiveDescriptors()
        {
            IEnumerable <DirectiveDescriptor> builtInDirectives = DirectiveDescriptor.GetBuiltInDirectives();

            Assert.Contains(builtInDirectives, d => d.DisplayName == "assembly");
            Assert.Contains(builtInDirectives, d => d.DisplayName == "import");
            Assert.Contains(builtInDirectives, d => d.DisplayName == "include");
            Assert.Contains(builtInDirectives, d => d.DisplayName == "output");
            Assert.Contains(builtInDirectives, d => d.DisplayName == "parameter");
            Assert.Contains(builtInDirectives, d => d.DisplayName == "template");
            Assert.Contains(builtInDirectives, d => d.DisplayName.Length == 0);
            Assert.Equal(7, builtInDirectives.Count());
        }