WriteByte() public method

Writes a byte to the current position in the stream and advances the position within the stream by one byte.
An I/O error occurs. The stream does not support writing, or the stream is already closed. Methods were called after the stream was closed.
public WriteByte ( byte value ) : void
value byte The byte to write to the stream.
return void
コード例 #1
0
ファイル: SftpFileStreamTest.cs プロジェクト: pecegit/sshnet
 public void WriteByteTest()
 {
     SftpSession session = null; // TODO: Initialize to an appropriate value
     string path = string.Empty; // TODO: Initialize to an appropriate value
     FileMode mode = new FileMode(); // TODO: Initialize to an appropriate value
     SftpFileStream target = new SftpFileStream(session, path, mode); // TODO: Initialize to an appropriate value
     byte value = 0; // TODO: Initialize to an appropriate value
     target.WriteByte(value);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }