public void FileSerializationTest() { FileSerializer <TestDataType> ser = SerializationHelper.GetFileSerializer <TestDataType>(LOCK_NAME, _fileName); TestDataType data = new TestDataType(); TestDataType data2; ser.WriteObjectToFile(data); Assert.IsTrue(File.Exists(_fileName)); data2 = ser.LoadObjectFromFile(); Assert.IsTrue(data.Equals(data2)); }