Exemplo n.º 1
0
        public void ShouldAutomaticallyCreateInstance()
        {
            LogA log1 = LogA.Instance;
            LogA log2 = LogA.Instance;

            Assert.IsNotNull(log1);
            Assert.IsNotNull(log2);
            Assert.AreSame(log1, log2);
        }
Exemplo n.º 2
0
        public void Do()
        {
            var capture = new ConsoleCapture();

            using (capture.Output())
            {
                LogA.WriteLine(this, "BLAHA");
                LogB.WriteLine(this, "BLAHB");
            }
            Assert.AreEqual("XXXA BLAHA\n", capture.ReadToEnd().ToLf());
        }
Exemplo n.º 3
0
 public ConditionalAttributeTests()
 {
     LogA.Prefix(this, "XXXA ");
     LogB.Prefix(this, "XXXB ");
 }