public RegisterType ( |
||
type | The type to register. | |
itemNamePrefix | string | The item name prefix. |
return | void |
public void CustomAgnosticTests() { var cif = new ConfigurationItemFactory(); cif.RegisterType(typeof(CustomRendererAgnostic), string.Empty); Layout l = new SimpleLayout("${customAgnostic}", cif); l.Initialize(null); Assert.True(l.IsThreadAgnostic); }
public void CustomNotAgnosticTests() { var cif = new ConfigurationItemFactory(); cif.RegisterType(typeof(CustomRendererNonAgnostic), string.Empty); var cfg = new LoggingConfiguration(cif); Layout l = new SimpleLayout("${customNotAgnostic}", cfg); l.Initialize(cfg); Assert.IsFalse(l.IsThreadAgnostic); }