Beispiel #1
0
 [TestInitialize] public override void TestInitialize()
 {
     base.TestInitialize();
     type        = typeof(Safe);
     logBook     = new LogTests.testLogBook();
     Log.logBook = logBook;
 }
Beispiel #2
0
        [TestMethod] public void RunMethodTest()
        {
            var newLogBook = new LogTests.testLogBook();

            Safe.Run(() => Log.logBook = newLogBook);
            Assert.IsNull(newLogBook.LoggedException);
        }