Esempio n. 1
0
 public void LoadFromFileTest()
 {
     const string cFileName = @"c:\test\StrArrayTest.txt";
     var satemp = new Collection<string> {"A", "B", "C"};
     FileTools.SSaveArrayToFile(cFileName, satemp);
     var sa = new StrArray();
     sa.LoadFromFile(cFileName);
     Assert.AreEqual(3, sa.Count());
     Assert.AreEqual("A", sa[0]);
     Assert.AreEqual("C", sa[2]);
 }