Skip to content

Commit 451ffb9

Browse files
committed
continued line endings struggle ...
continued line endings struggle ...
1 parent 70787cd commit 451ffb9

File tree

207 files changed

+23984
-23984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+23984
-23984
lines changed
Lines changed: 105 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,106 @@
1-
using Microsoft.VisualStudio.TestTools.UnitTesting;
2-
using Renci.SshNet.Tests.Common;
3-
using System;
4-
5-
namespace Renci.SshNet.Tests.Classes
6-
{
7-
/// <summary>
8-
/// Provides functionality to perform private key authentication.
9-
/// </summary>
10-
[TestClass]
11-
public class PrivateKeyAuthenticationMethodTest : TestBase
12-
{
13-
[TestMethod]
14-
[TestCategory("AuthenticationMethod")]
15-
[TestCategory("PrivateKeyAuthenticationMethod")]
16-
[Owner("Kenneth_aa")]
17-
[Description("PrivateKeyAuthenticationMethod: Pass null as username, null as password.")]
18-
[ExpectedException(typeof(ArgumentException))]
19-
public void PrivateKey_Test_Pass_Null()
20-
{
21-
new PrivateKeyAuthenticationMethod(null, null);
22-
}
23-
24-
[TestMethod]
25-
[TestCategory("AuthenticationMethod")]
26-
[TestCategory("PrivateKeyAuthenticationMethod")]
27-
[Owner("olegkap")]
28-
[Description("PrivateKeyAuthenticationMethod: Pass valid username, null as password.")]
29-
[ExpectedException(typeof(ArgumentNullException))]
30-
public void PrivateKey_Test_Pass_PrivateKey_Null()
31-
{
32-
new PrivateKeyAuthenticationMethod("username", null);
33-
}
34-
35-
[TestMethod]
36-
[TestCategory("AuthenticationMethod")]
37-
[TestCategory("PrivateKeyAuthenticationMethod")]
38-
[Owner("Kenneth_aa")]
39-
[Description("PrivateKeyAuthenticationMethod: Pass String.Empty as username, null as password.")]
40-
[ExpectedException(typeof(ArgumentException))]
41-
public void PrivateKey_Test_Pass_Whitespace()
42-
{
43-
new PrivateKeyAuthenticationMethod(string.Empty, null);
44-
}
45-
46-
/// <summary>
47-
///A test for Name
48-
///</summary>
49-
[TestMethod]
50-
[Ignore] // placeholder for actual test
51-
public void NameTest()
52-
{
53-
string username = string.Empty; // TODO: Initialize to an appropriate value
54-
PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
55-
PrivateKeyAuthenticationMethod target = new PrivateKeyAuthenticationMethod(username, keyFiles); // TODO: Initialize to an appropriate value
56-
string actual;
57-
actual = target.Name;
58-
Assert.Inconclusive("Verify the correctness of this test method.");
59-
}
60-
61-
/// <summary>
62-
///A test for Dispose
63-
///</summary>
64-
[TestMethod]
65-
[Ignore] // placeholder for actual test
66-
public void DisposeTest()
67-
{
68-
string username = string.Empty; // TODO: Initialize to an appropriate value
69-
PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
70-
PrivateKeyAuthenticationMethod target = new PrivateKeyAuthenticationMethod(username, keyFiles); // TODO: Initialize to an appropriate value
71-
target.Dispose();
72-
Assert.Inconclusive("A method that does not return a value cannot be verified.");
73-
}
74-
75-
/// <summary>
76-
///A test for Authenticate
77-
///</summary>
78-
[TestMethod]
79-
[Ignore] // placeholder for actual test
80-
public void AuthenticateTest()
81-
{
82-
string username = string.Empty; // TODO: Initialize to an appropriate value
83-
PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
84-
PrivateKeyAuthenticationMethod target = new PrivateKeyAuthenticationMethod(username, keyFiles); // TODO: Initialize to an appropriate value
85-
Session session = null; // TODO: Initialize to an appropriate value
86-
AuthenticationResult expected = new AuthenticationResult(); // TODO: Initialize to an appropriate value
87-
AuthenticationResult actual;
88-
actual = target.Authenticate(session);
89-
Assert.AreEqual(expected, actual);
90-
Assert.Inconclusive("Verify the correctness of this test method.");
91-
}
92-
93-
/// <summary>
94-
///A test for PrivateKeyAuthenticationMethod Constructor
95-
///</summary>
96-
[TestMethod]
97-
[Ignore] // placeholder for actual test
98-
public void PrivateKeyAuthenticationMethodConstructorTest()
99-
{
100-
string username = string.Empty; // TODO: Initialize to an appropriate value
101-
PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
102-
PrivateKeyAuthenticationMethod target = new PrivateKeyAuthenticationMethod(username, keyFiles);
103-
Assert.Inconclusive("TODO: Implement code to verify target");
104-
}
105-
}
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
using Renci.SshNet.Tests.Common;
3+
using System;
4+
5+
namespace Renci.SshNet.Tests.Classes
6+
{
7+
/// <summary>
8+
/// Provides functionality to perform private key authentication.
9+
/// </summary>
10+
[TestClass]
11+
public class PrivateKeyAuthenticationMethodTest : TestBase
12+
{
13+
[TestMethod]
14+
[TestCategory("AuthenticationMethod")]
15+
[TestCategory("PrivateKeyAuthenticationMethod")]
16+
[Owner("Kenneth_aa")]
17+
[Description("PrivateKeyAuthenticationMethod: Pass null as username, null as password.")]
18+
[ExpectedException(typeof(ArgumentException))]
19+
public void PrivateKey_Test_Pass_Null()
20+
{
21+
new PrivateKeyAuthenticationMethod(null, null);
22+
}
23+
24+
[TestMethod]
25+
[TestCategory("AuthenticationMethod")]
26+
[TestCategory("PrivateKeyAuthenticationMethod")]
27+
[Owner("olegkap")]
28+
[Description("PrivateKeyAuthenticationMethod: Pass valid username, null as password.")]
29+
[ExpectedException(typeof(ArgumentNullException))]
30+
public void PrivateKey_Test_Pass_PrivateKey_Null()
31+
{
32+
new PrivateKeyAuthenticationMethod("username", null);
33+
}
34+
35+
[TestMethod]
36+
[TestCategory("AuthenticationMethod")]
37+
[TestCategory("PrivateKeyAuthenticationMethod")]
38+
[Owner("Kenneth_aa")]
39+
[Description("PrivateKeyAuthenticationMethod: Pass String.Empty as username, null as password.")]
40+
[ExpectedException(typeof(ArgumentException))]
41+
public void PrivateKey_Test_Pass_Whitespace()
42+
{
43+
new PrivateKeyAuthenticationMethod(string.Empty, null);
44+
}
45+
46+
/// <summary>
47+
///A test for Name
48+
///</summary>
49+
[TestMethod]
50+
[Ignore] // placeholder for actual test
51+
public void NameTest()
52+
{
53+
string username = string.Empty; // TODO: Initialize to an appropriate value
54+
PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
55+
PrivateKeyAuthenticationMethod target = new PrivateKeyAuthenticationMethod(username, keyFiles); // TODO: Initialize to an appropriate value
56+
string actual;
57+
actual = target.Name;
58+
Assert.Inconclusive("Verify the correctness of this test method.");
59+
}
60+
61+
/// <summary>
62+
///A test for Dispose
63+
///</summary>
64+
[TestMethod]
65+
[Ignore] // placeholder for actual test
66+
public void DisposeTest()
67+
{
68+
string username = string.Empty; // TODO: Initialize to an appropriate value
69+
PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
70+
PrivateKeyAuthenticationMethod target = new PrivateKeyAuthenticationMethod(username, keyFiles); // TODO: Initialize to an appropriate value
71+
target.Dispose();
72+
Assert.Inconclusive("A method that does not return a value cannot be verified.");
73+
}
74+
75+
/// <summary>
76+
///A test for Authenticate
77+
///</summary>
78+
[TestMethod]
79+
[Ignore] // placeholder for actual test
80+
public void AuthenticateTest()
81+
{
82+
string username = string.Empty; // TODO: Initialize to an appropriate value
83+
PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
84+
PrivateKeyAuthenticationMethod target = new PrivateKeyAuthenticationMethod(username, keyFiles); // TODO: Initialize to an appropriate value
85+
Session session = null; // TODO: Initialize to an appropriate value
86+
AuthenticationResult expected = new AuthenticationResult(); // TODO: Initialize to an appropriate value
87+
AuthenticationResult actual;
88+
actual = target.Authenticate(session);
89+
Assert.AreEqual(expected, actual);
90+
Assert.Inconclusive("Verify the correctness of this test method.");
91+
}
92+
93+
/// <summary>
94+
///A test for PrivateKeyAuthenticationMethod Constructor
95+
///</summary>
96+
[TestMethod]
97+
[Ignore] // placeholder for actual test
98+
public void PrivateKeyAuthenticationMethodConstructorTest()
99+
{
100+
string username = string.Empty; // TODO: Initialize to an appropriate value
101+
PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
102+
PrivateKeyAuthenticationMethod target = new PrivateKeyAuthenticationMethod(username, keyFiles);
103+
Assert.Inconclusive("TODO: Implement code to verify target");
104+
}
105+
}
106106
}

0 commit comments

Comments
 (0)