public void NonThreadAgnosticTest() { Layout l = new SimpleLayout("${threadname}"); l.Initialize(null); Assert.False(l.ThreadAgnostic); }
public void ThreadAgnosticTest() { Layout l = new SimpleLayout("${message}"); l.Initialize(null); Assert.True(l.ThreadAgnostic); }
public void TripleWrapperOverNonAgnostic() { Layout l = new SimpleLayout("${uppercase:${lowercase:${rot13:${message}${threadname}}}}"); l.Initialize(null); Assert.False(l.ThreadAgnostic); }
public void TripleWrapperOverAgnostic() { Layout l = new SimpleLayout("${uppercase:${lowercase:${rot13:${message}}}}"); l.Initialize(null); Assert.True(l.IsThreadAgnostic); }
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.ThreadAgnostic); }