Beispiel #1
0
        public void LogText()
        {
            string text = "JetWallet is a Bitcoin Wallet for Windows Desktop.";

            JetLogger.Log(text);

            string path   = LoggerTools.GetFilePath();
            string result = File.ReadAllText(path);

            Assert.That(result.Contains(text));
        }
Beispiel #2
0
        public void LogException()
        {
            Exception e = new Exception("Uh-Oh, something broke!");

            JetLogger.LogException(e);

            string path   = LoggerTools.GetFilePath();
            string result = File.ReadAllText(path);

            Assert.That(result.Contains(e.Message));
        }
Beispiel #3
0
 public void Init()
 {
     logger = new JetLogger();
 }