public void FixMalformedBoundaryTest() { string expected = "--" + _value; byte[] buffer = Encoding.ASCII.GetBytes(expected); MJPEGStreamParser parser = new MJPEGStreamParser(_boundary, new byte[0]); MemoryStream stream = new MemoryStream(buffer); parser.Read(stream); _boundary.FixMalformedBoundary(parser); Assert.AreEqual(expected, _boundary.Content); }