Antlr4.Runtime.Test.TestIntervalSet.TestNotSingleElement C# (CSharp) Méthode

TestNotSingleElement() private méthode

private TestNotSingleElement ( ) : void
Résultat void
        public void TestNotSingleElement()
        {
            IntervalSet vocabulary = IntervalSet.Of(1, 1000);
            vocabulary.Add(2000, 3000);
            IntervalSet s = IntervalSet.Of(50, 50);
            String expecting = "{1..49, 51..1000, 2000..3000}";
            String result = (s.Complement(vocabulary)).ToString();
            Assert.AreEqual(expecting, result);
        }