File: BoogieTestBase.cs

package info (click to toggle)
boogie 2.4.1%2Bdfsg-0.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 19,456 kB
  • sloc: cs: 90,888; python: 183; lisp: 99; sh: 66; makefile: 14
file content (24 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using NUnit.Framework;
using System;
using System.Diagnostics;
using Microsoft.Boogie;

namespace Microsoft.Boogie
{
  namespace TestUtil
  {
    public class BoogieTestBase {

      public BoogieTestBase() {
        // Debug log output goes to standard error.
        // Failing System.Diagnostics failures trigger NUnit assertion failures
        Debug.Listeners.Add(new AssertionTextWriterTraceListener(Console.Error));

        // FIXME: THIS IS A HACK. Boogie's methods
        // depend on its command line parser being set!
        CommandLineOptions.Install(new Microsoft.Boogie.CommandLineOptions());
      }
    }
  }
}