示例#1
0
        public void DeepCopy()
        {
            string     fn = Path.Combine(TestData.DataPath, "el68d_export.csv");
            TextSeries s  = new TextSeries(fn);

            s.Read();
            s.Name = "First";
            Series s2 = s.Copy();

            s.Name = "Second";
            Console.WriteLine("s.Name = " + s.Name);
            Console.WriteLine("s2.Name = " + s2.Name);
            Assert.IsTrue(s2.Name == "First");
            Assert.IsTrue(s.Name == "Second");
        }