public void TestSerNullItem() { BrokenSerEntity obj = new BrokenSerEntity { Value = 12345 }; using (MemoryStream ms = new MemoryStream()) { BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(ms, obj); } }