45 using System.Collections.Generic;
47 using NUnit.Framework;
53 string BlanksBefore =
string.Empty;
130 foreach (
string Value
in fpls_Return)
150 for (
int i = 0; i < fpsParameter.Length; i += 2)
152 this.
LogPrint(fpsParameter[i] +
": >>" + fpsParameter[i + 1] +
"<<");
178 String String2Print = fps_KeyWordName;
181 if (fpsParameter.Length == 0)
184 String2Print = String2Print +
"()";
187 else if (fpsParameter.Length == 1)
189 String2Print = String2Print +
": \"" + fpsParameter[0] +
"\"";
192 else if (fpsParameter.Length == 2)
194 String2Print = String2Print +
": \"" + fpsParameter[0] +
"\" = \"" + fpsParameter[1] +
"\"";
198 String2Print = String2Print +
"(\"" + fpsParameter[0] +
"\"";
200 for (
int i = 1; i < fpsParameter.Length; i++)
202 String2Print = String2Print +
", \"" + fpsParameter[i] +
"\"";
205 String2Print = String2Print +
")";
228 public void LogVerify(
string fps_Actual,
string fps_Expected)
232 Assert.AreEqual(fps_Expected, fps_Actual);
257 if (this.LevelCounter > 0)
263 this.LevelCounter = 0;
288 this.BlanksBefore =
new string(
' ', this.LevelCounter);
321 #endregion Constructors
329 if (instance == null)
363 #endregion Properties
374 cvLs_LogValue.Clear();
375 cvLs_LogValue.Add(
string.Empty);
386 int Aktuelle_Zeile = cvLs_LogValue.Count - 1;
388 cvLs_LogValue[Aktuelle_Zeile] = cvLs_LogValue[Aktuelle_Zeile] + fps_Value;
400 this.
Write(fps_Value);
401 cvLs_LogValue.Add(
string.Empty);
Klasse enthält OKW-Hilfsfunktionen.
void LogFunctionStart(string fps_FunctionName, params string[] fpsParameter)
void Init()
Inhalt der virtuellen Konsole wird gelöscht.
void LogFunctionEnd(bool fpb_Return)
void ResOpenList(string fps_Name)
Klasse bildet eine virtuelle Konsole nach um das Logging zu prüfen. Die Werte werden via Log2NUnit ge...
void LogPrint(string fps_Message)
LogPrint Function: Prints the values of expressions to the results file.
void LogException(string fps_Message)
LogException Function: Logs a Script Exception to the results file.
void LogKeyWordStart(string fps_KeyWordName, params string[] fpsParameter)
List< string > cvLs_LogValue
Diese Liste aus String-s ist für die Überprüfung des Loggings gedacht. Die Klasse Log2NUnit ist der G...
void LogVerify(string fps_Actual, string fps_Expected)
void WriteLine(string fps_Value)
Schreibt eine neue Zeile in die virtuelle Konsole. Text wird einer bereits mit Write geschriebenen Ze...
void Write(string fps_Value)
Fügt den gegebenen Wert in die letzte Zeile der virtuelle Konsole.
List< string > LogValue
Getter Eigenschaft der Variablen Log2NUnit_Console.cvLs_LogValue. Gettet die Eigenschaft LogValue als...
void LogFunctionEnd(List< string > fpls_Return)
Debug Logs are not a part of Interface. This functions are Implemented in Logger.cs a Log*Debug funct...
void LogFunctionEnd(string fps_Return)
void LogWarning(string fps_Message)
LogWarning Function: Logs a warning to the results file.
static string Boolean2String(bool fpbTrueOrFalse)
Konvertiert bool true/false nach string "true"/"false".
void ResCloseList()
Closes the outline level.
void LogError(string fps_Message)
LogError Function: Logs an error message to the results file.