public void CanGetMultipleValueOfAnalyzeNode()
        {
            // Arrange
            string          workingDirectory = Environment.CurrentDirectory;
            string          filepath         = Directory.GetParent(workingDirectory).Parent.FullName + "/Ressources/classdiagram.graphml";
            List <UML_Base> classes          = new List <UML_Base>();
            UML_Class       expectedClass    = new UML_Class("Employee", "n0");
            UML_Class       expectedClass2   = new UML_Class("User", "n1");

            classes.Add(expectedClass);
            classes.Add(expectedClass2);

            // Act
            Reader.Reader   instanceForDatamodel = new Reader.Reader(filepath);
            List <UML_Base> listOfClasses        = instanceForDatamodel.AnalyzeNode();

            // Assert
            Assert.Equal(classes, listOfClasses);
        }
        public void checkClass()
        {
            // Arrange
            string workingDirectory = Environment.CurrentDirectory;
            string filepath         = Directory.GetParent(workingDirectory).Parent.FullName + "/Ressources/classdiagram.graphml";

            UML_Class expectedClass = new UML_Class("Employee", "n0");

            // Act
            Reader.Reader instanceForDatamodel = new Reader.Reader(filepath);

            List <UML_Base> baseModel = instanceForDatamodel.AnalyzeNode();

            // Assert
            foreach (var @class in baseModel)
            {
                Assert.Equal(@class.GetType(), expectedClass.GetType());
            }
        }
        public void checkInterface()
        {
            // Arrange
            string workingDirectory = Environment.CurrentDirectory;
            string filepath         = Directory.GetParent(workingDirectory).Parent.FullName + "/Ressources/interfacediagram.graphml";
            string id = "n0";

            UML_Interface expectedInterface = new UML_Interface("Employee", id);

            // Act
            Reader.Reader instanceForDatamodel = new Reader.Reader(filepath);

            List <UML_Base> baseModel = instanceForDatamodel.AnalyzeNode();

            // Assert
            foreach (UML_Interface @interface in baseModel)
            {
                Assert.Equal(@interface.GetType(), expectedInterface.GetType());
            }
        }
        public void CanGetValueOfAnalyzeNode()
        {
            // Arrange
            string workingDirectory = Environment.CurrentDirectory;
            string filepath         = Directory.GetParent(workingDirectory).Parent.FullName + "/Ressources/classdiagram.graphml";

            List <UML_Base> expectedClassList = new List <UML_Base>();
            UML_Class       expectedClass     = new UML_Class("Employee", "n0");

            expectedClassList.Add(expectedClass);


            // Act
            XmlReader reader = new XmlTextReader(filepath);

            Reader.Reader   instanceForDatamodel = new Reader.Reader(filepath);
            List <UML_Base> baseModelList        = instanceForDatamodel.AnalyzeNode();


            // Assert
            Assert.Equal <UML_Base>(expectedClassList, baseModelList);
        }