public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | A byte offset relative to the origin parameter. |
origin | SeekOrigin | A value of type |
리턴 | long |
public void SeekTest() { PipeStream target = new PipeStream(); // TODO: Initialize to an appropriate value long offset = 0; // TODO: Initialize to an appropriate value SeekOrigin origin = new SeekOrigin(); // TODO: Initialize to an appropriate value long expected = 0; // TODO: Initialize to an appropriate value long actual; actual = target.Seek(offset, origin); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void SeekShouldThrowNotSupportedException() { const long offset = 0; const SeekOrigin origin = new SeekOrigin(); var target = new PipeStream(); try { target.Seek(offset, origin); Assert.Fail(); } catch (NotSupportedException) { } }