Пример #1
0
        public void Serialization_BinaryFormatter_Throws()
        {
            var expected = new Point2(-2, 12);
            var actual   = expected.GetBinaryFormatterDeserializedObject();

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
 public void Serialization_BinaryFormatter_Throws()
 {
     Assert.Throws <SerializationException>(
         () =>
     {
         var expected = new Point2(-2, 12);
         var actual   = expected.GetBinaryFormatterDeserializedObject();
         Assert.Equal(expected, actual);
     });
 }
Пример #3
0
        public void Serialization_BinaryFormatter_Throws()
        {
            var point = new Point2(-2, 12);

            Assert.Throws <SerializationException>(() => point.GetBinaryFormatterDeserializedObject());
        }