Ejemplo n.º 1
0
        public void When_WriteAndRead_TempNodeGraph_Expect_SameNode(TempNodeGraph originalGraph)
        {
            string filePath = ArgParser.GetPath(Path.Combine(OSString, "Output_Files", "xmlOutput.xml"));

            XMLCreator.writeXML(originalGraph, filePath);
            TempNodeGraph restoredGraph = XMLCreator.readXML <TempNodeGraph>(filePath);

            Assert.AreEqual(originalGraph.tempNode, restoredGraph.tempNode);
        }
Ejemplo n.º 2
0
            public override bool Equals(Object obj)
            {
                //Check for null and compare run-time types.
                if ((obj == null) || !this.GetType().Equals(obj.GetType()))
                {
                    return(false);
                }
                else
                {
                    TempNodeGraph other = (TempNodeGraph)obj;

                    return((tempString.Equals(other.tempString)) &&
                           System.Linq.Enumerable.SequenceEqual(tempNodeArray, other.tempNodeArray) &&
                           (tempNode.Equals(other.tempNode)));
                }
            }