From e657708011bf98e9d779318a2bc774e298d54cfa Mon Sep 17 00:00:00 2001 From: MPostol Date: Tue, 7 Aug 2018 16:50:33 +0200 Subject: [PATCH] 3. Data Streams : Serialization #117 - work in progress --- .../DataStreams.UnitTest/SerializationUnitTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lecture/P03.DataStreams/DataStreams.UnitTest/SerializationUnitTest.cs b/Lecture/P03.DataStreams/DataStreams.UnitTest/SerializationUnitTest.cs index 0b07d7a0..eed7129e 100644 --- a/Lecture/P03.DataStreams/DataStreams.UnitTest/SerializationUnitTest.cs +++ b/Lecture/P03.DataStreams/DataStreams.UnitTest/SerializationUnitTest.cs @@ -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);