Skip to content

Commit 61d5324

Browse files
Changed WindowChangeRequest to friendlier name.
1 parent f77df6a commit 61d5324

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Renci.SshNet.Tests/Classes/ShellStreamTest.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void WindowChangeRequest_ShouldReturnFalseWhenNotConnected()
108108
{
109109
var shellStream = CreateShellStream();
110110
_channelSessionMock.Setup(s => s.IsOpen).Returns(false);
111-
Assert.IsFalse(shellStream.WindowChangeRequest(80, 25, 0, 0));
111+
Assert.IsFalse(shellStream.ChangeWindow(80, 25, 0, 0));
112112
}
113113

114114
[TestMethod]
@@ -119,7 +119,7 @@ public void WindowChangeRequest_ShouldReturnFalseWhenResultFails()
119119
_channelSessionMock.Setup(s => s.SendWindowChangeRequest(
120120
It.IsAny<uint>(), It.IsAny<uint>(),
121121
It.IsAny<uint>(), It.IsAny<uint>())).Returns(false);
122-
Assert.IsFalse(shellStream.WindowChangeRequest(80, 25, 0, 0));
122+
Assert.IsFalse(shellStream.ChangeWindow(80, 25, 0, 0));
123123
}
124124

125125
[TestMethod]
@@ -130,7 +130,7 @@ public void WindowChangeRequest_ShouldReturnTrueWhenResultSucceeds()
130130
_channelSessionMock.Setup(s => s.SendWindowChangeRequest(
131131
It.IsAny<uint>(), It.IsAny<uint>(),
132132
It.IsAny<uint>(), It.IsAny<uint>())).Returns(true);
133-
Assert.IsTrue(shellStream.WindowChangeRequest(80, 25, 0, 0));
133+
Assert.IsTrue(shellStream.ChangeWindow(80, 25, 0, 0));
134134
_channelSessionMock.Verify(v => v.SendWindowChangeRequest(80,25,0,0), Times.Once());
135135
}
136136

src/Renci.SshNet/ShellStream.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public bool DataAvailable
6262
/// <param name="width">New screen width in Pixels</param>
6363
/// <param name="height">New screen height in Pixels</param>
6464
/// <returns>true when change is successful, or false when channel is NOT open or the request </returns>
65-
public bool WindowChangeRequest(uint columns, uint rows, uint width, uint height)
65+
public bool ChangeWindow(uint columns, uint rows, uint width, uint height )
6666
{
6767
if (_channel==null || !_channel.IsOpen) return false;
6868
return _channel.SendWindowChangeRequest(columns, rows, width, height);

0 commit comments

Comments
 (0)