Skip to content

Commit

Permalink
3. Data Streams : Serialization #117
Browse files Browse the repository at this point in the history
- work in progress
  • Loading branch information
mpostol committed Aug 7, 2018
1 parent e32209b commit e657708
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ namespace TP.DataStreams
public class SerializationUnitTest
{
[TestMethod]
public void SerializeTestMethod()
public void SelfControlSerializationTest()
{
ISerializable _objectToSerialize = new SelfControlSerialization(987654321.123, 123456789.987);
CustomFormatter _formatter = new CustomFormatter();
const string _fileName = "test.xml";
File.Delete(_fileName);
using (FileStream _stream = new FileStream("test.xml", FileMode.Create))
using (Stream _stream = new FileStream("test.xml", FileMode.Create))
_formatter.Serialize(_stream, _objectToSerialize);
FileInfo _info = new FileInfo(_fileName);
Assert.IsTrue(_info.Exists);
Expand Down

0 comments on commit e657708

Please sign in to comment.