public void Error_AllLogWithoutMessageType() { RefactoredJobLogger oRefactoredJobLogger = new RefactoredJobLogger(); string msg = "AllLogMessageTypeError"; string expectedResult = "Successful"; string currentResult = RefactoredJobLogger.LogMessage(msg, null, true, true, true); Assert.AreEqual<string>(expectedResult, currentResult); }
public void Error_MessageNull() { RefactoredJobLogger oRefactoredJobLogger = new RefactoredJobLogger(); string msg = null; string expectedResult = "Successful"; string currentResult = RefactoredJobLogger.LogMessage(msg, Enums.MessageType.Message, true, true, true); Assert.AreEqual<string>(expectedResult, currentResult); }
public void AllLogMessageTypeWarning() { RefactoredJobLogger oRefactoredJobLogger = new RefactoredJobLogger(); string msg = "AllLogMessageTypeWarning"; string expectedResult = "Successful"; string currentResult = RefactoredJobLogger.LogMessage(msg, Enums.MessageType.Warning, true, true, true); Assert.AreEqual<string>(expectedResult, currentResult); }
public void OnlyLogToConsole() { RefactoredJobLogger oRefactoredJobLogger = new RefactoredJobLogger(); string msg = "Test OnlyLogToConsole"; string expectedResult = "Successful"; string currentResult = RefactoredJobLogger.LogMessage(msg, Enums.MessageType.Message, false, true, false); Assert.AreEqual<string>(expectedResult, currentResult); }
public void Error_NoDestiny() { RefactoredJobLogger oRefactoredJobLogger = new RefactoredJobLogger(); string msg = "No destiny to save logs"; string expectedResult = "Successful"; string currentResult = RefactoredJobLogger.LogMessage(msg, Enums.MessageType.Message, false, false, false); Assert.AreEqual<string>(expectedResult, currentResult); }