public void GenerateXml_NoDependencies()
        {
            // Mixin1 has no depencies
              var explicitDependencies = _mixinConfiguration.ClassContexts.Single().Mixins.First().ExplicitDependencies;

              var dependencies = new ReflectedObject (explicitDependencies);
              var output = new AdditionalDependencyReportGenerator (dependencies, _identifierGenerator, _outputFormatter).GenerateXml();
              var expectedOutput = new XElement ("AdditionalDependencies");

              Assert.That (output.ToString(), Is.EqualTo (expectedOutput.ToString()));
        }
        public void GenerateXml_WithDependencies()
        {
            var explicitDependencies = _mixinConfiguration.ClassContexts.Single().Mixins.Last().ExplicitDependencies;

              var dependencies = new ReflectedObject (explicitDependencies);
              var output = new AdditionalDependencyReportGenerator (dependencies, _identifierGenerator, _outputFormatter).GenerateXml ();
              var expectedOutput = new XElement (
              "AdditionalDependencies",
              new XElement (
              "AdditionalDependency",
              new XAttribute ("ref", "0"),
              new XAttribute ("instance-name", "AdditionalDependenciesTest+Mixin1")),
              new XElement (
              "AdditionalDependency",
              new XAttribute ("ref", "1"),
              new XAttribute ("instance-name", "AdditionalDependenciesTest+Mixin2"))
              );

              Assert.That (output.ToString(), Is.EqualTo (expectedOutput.ToString()));
        }