public void LongStringTest() { var matfile = new DotMatFile(); var str = new MatlabString("Now is the time for all good men to come to the aid of the party."); matfile["stringLong"] = str; matfile.WriteToDisk("stringLong.mat"); }
public void ShortStringTest() { var matfile = new DotMatFile(); var str = new MatlabString("foo"); matfile["stringFoo"] = str; matfile.WriteToDisk("stringFoo.mat"); }
public void NullStringTest() { var matfile = new DotMatFile(); var str = new MatlabString(null); matfile["stringNull"] = str; matfile.WriteToDisk("stringNull.mat"); }
public void EmptyStringTest() { var matfile = new DotMatFile(); var str = new MatlabString(string.Empty); matfile["stringEmpty"] = str; matfile.WriteToDisk("stringEmpty.mat"); }
public void CompressedTest() { var matFile = new DotMatFile(); matFile["greeting"] = new MatlabString("Hello, World!"); var filename = Path.GetRandomFileName() + ".c.mat"; matFile.WriteToDisk(filename, compressed: true); // File.Delete(filename); }