Exemplo n.º 1
0
        public void Serialization_BinaryFormatter_Throws()
        {
	        Assert.Throws<SerializationException>(
		        () =>
			        {
				        var expected = new Point2(-2, 12);
				        var actual = expected.GetBinaryFormatterDeserializedObject();
				        Assert.Equal(expected, actual);
			        });
        }
Exemplo n.º 2
0
 public void Serialization_BinaryFormatter_Throws()
 {
     var expected = new Point2(-2, 12);
     var actual = expected.GetBinaryFormatterDeserializedObject();
     Assert.AreEqual(expected, actual);
 }
Exemplo n.º 3
0
        public void Serialization_BinaryFormatter_Throws()
        {
            var point = new Point2(-2, 12);

            Assert.Throws <SerializationException>(() => point.GetBinaryFormatterDeserializedObject());
        }
Exemplo n.º 4
0
 public void Serialization_BinaryFormatter_Throws()
 {
     var point = new Point2(-2, 12);
     Assert.Throws<SerializationException>(() => point.GetBinaryFormatterDeserializedObject());
 }