ASCIIEncodingTest.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Renci.SshNet.Common;
  3. using Renci.SshNet.Tests.Common;
  4. namespace Renci.SshNet.Tests.Classes.Common
  5. {
  6. /// <summary>
  7. ///
  8. /// </summary>
  9. [TestClass]
  10. public class ASCIIEncodingTest : TestBase
  11. {
  12. /// <summary>
  13. ///A test for GetByteCount
  14. ///</summary>
  15. [TestMethod()]
  16. public void GetByteCountTest()
  17. {
  18. ASCIIEncoding target = new ASCIIEncoding(); // TODO: Initialize to an appropriate value
  19. char[] chars = null; // TODO: Initialize to an appropriate value
  20. int index = 0; // TODO: Initialize to an appropriate value
  21. int count = 0; // TODO: Initialize to an appropriate value
  22. int expected = 0; // TODO: Initialize to an appropriate value
  23. int actual;
  24. actual = target.GetByteCount(chars, index, count);
  25. Assert.AreEqual(expected, actual);
  26. Assert.Inconclusive("Verify the correctness of this test method.");
  27. }
  28. /// <summary>
  29. ///A test for ASCIIEncoding Constructor
  30. ///</summary>
  31. [TestMethod()]
  32. public void ASCIIEncodingConstructorTest()
  33. {
  34. ASCIIEncoding target = new ASCIIEncoding();
  35. Assert.Inconclusive("TODO: Implement code to verify target");
  36. }
  37. /// <summary>
  38. ///A test for GetBytes
  39. ///</summary>
  40. [TestMethod()]
  41. public void GetBytesTest()
  42. {
  43. ASCIIEncoding target = new ASCIIEncoding(); // TODO: Initialize to an appropriate value
  44. char[] chars = null; // TODO: Initialize to an appropriate value
  45. int charIndex = 0; // TODO: Initialize to an appropriate value
  46. int charCount = 0; // TODO: Initialize to an appropriate value
  47. byte[] bytes = null; // TODO: Initialize to an appropriate value
  48. int byteIndex = 0; // TODO: Initialize to an appropriate value
  49. int expected = 0; // TODO: Initialize to an appropriate value
  50. int actual;
  51. actual = target.GetBytes(chars, charIndex, charCount, bytes, byteIndex);
  52. Assert.AreEqual(expected, actual);
  53. Assert.Inconclusive("Verify the correctness of this test method.");
  54. }
  55. /// <summary>
  56. ///A test for GetCharCount
  57. ///</summary>
  58. [TestMethod()]
  59. public void GetCharCountTest()
  60. {
  61. ASCIIEncoding target = new ASCIIEncoding(); // TODO: Initialize to an appropriate value
  62. byte[] bytes = null; // TODO: Initialize to an appropriate value
  63. int index = 0; // TODO: Initialize to an appropriate value
  64. int count = 0; // TODO: Initialize to an appropriate value
  65. int expected = 0; // TODO: Initialize to an appropriate value
  66. int actual;
  67. actual = target.GetCharCount(bytes, index, count);
  68. Assert.AreEqual(expected, actual);
  69. Assert.Inconclusive("Verify the correctness of this test method.");
  70. }
  71. /// <summary>
  72. ///A test for GetChars
  73. ///</summary>
  74. [TestMethod()]
  75. public void GetCharsTest()
  76. {
  77. ASCIIEncoding target = new ASCIIEncoding(); // TODO: Initialize to an appropriate value
  78. byte[] bytes = null; // TODO: Initialize to an appropriate value
  79. int byteIndex = 0; // TODO: Initialize to an appropriate value
  80. int byteCount = 0; // TODO: Initialize to an appropriate value
  81. char[] chars = null; // TODO: Initialize to an appropriate value
  82. int charIndex = 0; // TODO: Initialize to an appropriate value
  83. int expected = 0; // TODO: Initialize to an appropriate value
  84. int actual;
  85. actual = target.GetChars(bytes, byteIndex, byteCount, chars, charIndex);
  86. Assert.AreEqual(expected, actual);
  87. Assert.Inconclusive("Verify the correctness of this test method.");
  88. }
  89. /// <summary>
  90. ///A test for GetMaxByteCount
  91. ///</summary>
  92. [TestMethod()]
  93. public void GetMaxByteCountTest()
  94. {
  95. ASCIIEncoding target = new ASCIIEncoding(); // TODO: Initialize to an appropriate value
  96. int charCount = 0; // TODO: Initialize to an appropriate value
  97. int expected = 0; // TODO: Initialize to an appropriate value
  98. int actual;
  99. actual = target.GetMaxByteCount(charCount);
  100. Assert.AreEqual(expected, actual);
  101. Assert.Inconclusive("Verify the correctness of this test method.");
  102. }
  103. /// <summary>
  104. ///A test for GetMaxCharCount
  105. ///</summary>
  106. [TestMethod()]
  107. public void GetMaxCharCountTest()
  108. {
  109. ASCIIEncoding target = new ASCIIEncoding(); // TODO: Initialize to an appropriate value
  110. int byteCount = 0; // TODO: Initialize to an appropriate value
  111. int expected = 0; // TODO: Initialize to an appropriate value
  112. int actual;
  113. actual = target.GetMaxCharCount(byteCount);
  114. Assert.AreEqual(expected, actual);
  115. Assert.Inconclusive("Verify the correctness of this test method.");
  116. }
  117. }
  118. }