public void Parse_FromClass_ThrowsException()
 {
     Assert.Throws <GraphTypeDeclarationException>(() =>
     {
         var template = new InterfaceGraphTypeTemplate(typeof(GraphInterfaceTemplateTests));
     });
 }
        public void Parse_FromInterface_GeneralPropertySettings_SetCorrectly()
        {
            var template = new InterfaceGraphTypeTemplate(typeof(ISimpleInterface));

            template.Parse();
            template.ValidateOrThrow();

            Assert.IsNotNull(template);
            Assert.AreEqual("[type]/ISimpleInterface", template.Route.Path);
            Assert.AreEqual(null, template.Description);
            Assert.AreEqual(typeof(ISimpleInterface), template.ObjectType);
            Assert.AreEqual(2, template.FieldTemplates.Count());
        }