示例#1
0
        public void Add_WarningLog_ToFile()
        {
            JobLogger jobLogger = new JobLogger(true, false, false);
            bool result = jobLogger.LogMessage("Testing Warning message", JobLogger.LogType.Warning);
            bool expected = true;

            Assert.AreEqual(expected, result, "Function not executed correctly");
        }
示例#2
0
        public void Add_MessageLog_ToDatabase()
        {
            JobLogger jobLogger = new JobLogger(false, false, true);
            bool result = jobLogger.LogMessage("Testing message", JobLogger.LogType.Message);
            bool expected = true;

            Assert.AreEqual(expected, result, "Function not executed correctly");
        }