public void ShouldSkip() { CustomFormatterMock skipped = new CustomFormatterMock() { Value = String.Empty }; Assert.IsTrue(_formatter.ShouldSkipField(skipped)); }
public void Read() { byte[] bytes = Encoding.ASCII.GetBytes(_value.Value); using (MemoryStream stream = new MemoryStream(bytes)) { CustomFormatterMock deserialized = _formatter.Deserialize(stream, 0, stream.Length); Assert.AreEqual(_value, deserialized); } }