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 FormatEventMessageOnNullBEEA()
 {
     MyLogger l = new MyLogger();
     BuildErrorEventArgs beea = null;
     string s = l.FormatErrorEvent(beea);
 }
 public void FormatEventMessageOnNullBWEA()
 {
     Assert.Throws<ArgumentNullException>(() =>
     {
         MyLogger l = new MyLogger();
         BuildWarningEventArgs bwea = null;
         string s = l.FormatWarningEvent(bwea);
     }
    );
 }
 public void FormatEventMessageOnNullBEEA()
 {
     Assert.Throws<ArgumentNullException>(() =>
     {
         MyLogger l = new MyLogger();
         BuildErrorEventArgs beea = null;
         string s = l.FormatErrorEvent(beea);
     }
    );
 }
 public void FormatEventMessageOnBEEA()
 {
     MyLogger l = new MyLogger();
     BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC",
                 "31415", "file.vb", 42, 0, 0, 0,
                 "Some long message", "help", "sender");
     string s = l.FormatErrorEvent(beea);
     Assert.Equal(
        "file.vb(42): VBC error 31415: Some long message", s);
 }
Beispiel #7
0
 public void FormatEventMessageOnNullBWEA()
 {
     MyLogger l = new MyLogger();
     BuildWarningEventArgs bwea = null;
     string s = l.FormatWarningEvent(bwea);
 }
Beispiel #8
0
 public void FormatEventMessageOnNullBEEA()
 {
     MyLogger            l    = new MyLogger();
     BuildErrorEventArgs beea = null;
     string s = l.FormatErrorEvent(beea);
 }