Ejemplo n.º 1
0
 public void TestParse6()
 {
     var parser = new LevelParser();
     int length;
     parser.Parse("FATAL", 0, out length).Should().Be(LevelFlags.Fatal);
     length.Should().Be(5);
 }
Ejemplo n.º 2
0
 public void TestParse4()
 {
     var parser = new LevelParser();
     int length;
     parser.Parse("ERROR", 0, out length).Should().Be(LevelFlags.Error);
     length.Should().Be(5);
 }
Ejemplo n.º 3
0
 public void TestParse2()
 {
     var parser = new LevelParser();
     int length;
     parser.Parse("DEBUG INFO", 6, out length).Should().Be(LevelFlags.Info);
     length.Should().Be(4);
 }
Ejemplo n.º 4
0
 public void TestParse3()
 {
     var parser = new LevelParser();
     int length;
     parser.Parse("WARNING", 0, out length).Should().Be(LevelFlags.Warning);
     length.Should().Be(7);
 }
Ejemplo n.º 5
0
 public void TestParse1()
 {
     var parser = new LevelParser();
     int length;
     parser.Parse("DEBUG", 0, out length).Should().Be(LevelFlags.Debug);
     length.Should().Be(5);
 }