public void sku_property_persists_after_round_trip_serialization() { BinaryFormatter bf = new BinaryFormatter(); using (MemoryStream ms = new MemoryStream()) { bf.Serialize(ms, _exceptionUnderTest); ms.Seek(0, 0); _exceptionUnderTest = bf.Deserialize(ms) as ShoppingCartParseException; } Assert.AreEqual(DUMMY_SKU, _exceptionUnderTest.SKU); }
public void Setup() { _exceptionUnderTest = new ShoppingCartParseException(DUMMY_SKU, DUMMY_MESSAGE); }