private static void InitLogging() { // Create log4net ILoggerFactory and set the resolver var factory = new slf4net.Factories.SimpleLoggerFactory(new TraceLogger("Test")); var resolver = new SimpleFactoryResolver(factory); LoggerFactory.SetFactoryResolver(resolver); }
public void SimpleFactoryResolverConstructorTest() { ILogFactory factory = null; // TODO: Initialize to an appropriate value SimpleFactoryResolver target = new SimpleFactoryResolver(factory); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void GetFactoryTest() { SimpleFactoryResolver target = new SimpleFactoryResolver(); // TODO: Initialize to an appropriate value string logName = string.Empty; // TODO: Initialize to an appropriate value ILogFactory expected = null; // TODO: Initialize to an appropriate value ILogFactory actual; actual = target.GetFactory(logName); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void FactoryTest() { SimpleFactoryResolver target = new SimpleFactoryResolver(); // TODO: Initialize to an appropriate value ILogFactory expected = null; // TODO: Initialize to an appropriate value ILogFactory actual; target.Factory = expected; actual = target.Factory; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void SimpleFactoryResolverConstructorTest1() { SimpleFactoryResolver target = new SimpleFactoryResolver(); Assert.Inconclusive("TODO: Implement code to verify target"); }