Ejemplo n.º 1
0
        public void GetLogWithTypeReturnsALoggerWithTypeName()
        {
            string expected = "PluginFramework.Tests.Logging.UnitTest_ILogger";
              string actual = null;

              ILogger tested = new MockILogger();
              actual = tested.GetLog(GetType()).Name;

              Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
 public void GetLogWithTypeThrowsOnNullType()
 {
     ILogger tested = new MockILogger();
       DoAssert.Throws<ArgumentNullException>(() => tested.GetLog((Type)null));
 }
Ejemplo n.º 3
0
 public void GetLogWithObjectThrowsOnNullObject()
 {
     ILogger tested = new MockILogger();
       DoAssert.Throws<ArgumentNullException>(() => tested.GetLog((object)null));
 }