|
|
|
@ -390,24 +390,24 @@ namespace CppSharp.Generator.Tests.AST
@@ -390,24 +390,24 @@ namespace CppSharp.Generator.Tests.AST
|
|
|
|
|
|
|
|
|
|
var method = @class.Methods.First(m => m.Name == "GetIOHandlerControlSequence"); |
|
|
|
|
var commentMethod = method.Comment.FullComment.CommentToString(CommentKind.BCPL); |
|
|
|
|
Assert.AreEqual(@"/// <summary>
|
|
|
|
|
/// <para>Get the string that needs to be written to the debugger stdin file</para>
|
|
|
|
|
/// <para>handle when a control character is typed.</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// <para>Some GUI programs will intercept "control + char" sequences and want</para>
|
|
|
|
|
/// <para>to have them do what normally would happen when using a real</para>
|
|
|
|
|
/// <para>terminal, so this function allows GUI programs to emulate this</para>
|
|
|
|
|
/// <para>functionality.</para>
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <param name=""ch"">
|
|
|
|
|
/// <para>The character that was typed along with the control key</para>
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <returns>
|
|
|
|
|
/// <para>The string that should be written into the file handle that is</para>
|
|
|
|
|
/// <para>feeding the input stream for the debugger, or NULL if there is</para>
|
|
|
|
|
/// <para>no string for this control key.</para>
|
|
|
|
|
/// </returns>".Replace("\r", string.Empty), commentMethod.Replace("\r", string.Empty));
|
|
|
|
|
Assert.AreEqual(@"// <summary>
|
|
|
|
|
// <para>Get the string that needs to be written to the debugger stdin file</para>
|
|
|
|
|
// <para>handle when a control character is typed.</para>
|
|
|
|
|
// </summary>
|
|
|
|
|
// <remarks>
|
|
|
|
|
// <para>Some GUI programs will intercept "control + char" sequences and want</para>
|
|
|
|
|
// <para>to have them do what normally would happen when using a real</para>
|
|
|
|
|
// <para>terminal, so this function allows GUI programs to emulate this</para>
|
|
|
|
|
// <para>functionality.</para>
|
|
|
|
|
// </remarks>
|
|
|
|
|
// <param name=""ch"">
|
|
|
|
|
// <para>The character that was typed along with the control key</para>
|
|
|
|
|
// </param>
|
|
|
|
|
// <returns>
|
|
|
|
|
// <para>The string that should be written into the file handle that is</para>
|
|
|
|
|
// <para>feeding the input stream for the debugger, or NULL if there is</para>
|
|
|
|
|
// <para>no string for this control key.</para>
|
|
|
|
|
// </returns>".Replace("\r", string.Empty), commentMethod.Replace("\r", string.Empty));
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|