Beispiel #1
0
 public void FormatEventMessageOnNullBWEA()
 {
     Should.Throw <ArgumentNullException>(() =>
     {
         MyLogger l = new MyLogger();
         BuildWarningEventArgs bwea = null;
         string s = l.FormatWarningEvent(bwea);
     }
                                          );
 }
Beispiel #2
0
        public void FormatEventMessageOnBWEA()
        {
            MyLogger l = new MyLogger();
            BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC",
                                                                   "31415", "file.vb", 42, 0, 0, 0,
                                                                   "Some long message", "help", "sender");
            string s = l.FormatWarningEvent(bwea);

            s.ShouldBe("file.vb(42): VBC warning 31415: Some long message");
        }
 public void FormatEventMessageOnNullBWEA()
 {
     MyLogger l = new MyLogger();
     BuildWarningEventArgs bwea = null;
     string s = l.FormatWarningEvent(bwea);
 }
 public void FormatEventMessageOnBWEA()
 {
     MyLogger l = new MyLogger();
     BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC",
                 "31415", "file.vb", 42, 0, 0, 0,
                 "Some long message", "help", "sender");
     string s = l.FormatWarningEvent(bwea);
     Assert.AreEqual(
        "file.vb(42): VBC warning 31415: Some long message", s);
 }
 public void FormatEventMessageOnNullBWEA()
 {
     Assert.Throws<ArgumentNullException>(() =>
     {
         MyLogger l = new MyLogger();
         BuildWarningEventArgs bwea = null;
         string s = l.FormatWarningEvent(bwea);
     }
    );
 }
Beispiel #6
0
 public void FormatEventMessageOnNullBWEA()
 {
     MyLogger l = new MyLogger();
     BuildWarningEventArgs bwea = null;
     string s = l.FormatWarningEvent(bwea);
 }