示例#1
0
        public void TestLoadFromFile()
        {
            string pathNew = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName +
                             "\\test.bin";
            FlowDiagram fl = new FlowDiagram();

            fl.LoadFromFile(pathNew);
            Assert.IsTrue(fl.Components.Count == 2);
            Assert.IsTrue(fl.Connections.Count == 1);
        }