CFGLibTest.Unit.TestCFGToCNFEmptyProb.TestGetNullable07 C# (CSharp) Méthode

TestGetNullable07() private méthode

private TestGetNullable07 ( ) : void
Résultat void
		public void TestGetNullable07() {
			var productions = new HashSet<Production> {
				CFGParser.Production("<S> -> 'x'"),
				CFGParser.Production("<S> -> <S> <S> <S>"),
			};

			var result = (Dictionary<Nonterminal, double>)nullableClass.InvokeStatic("GetNullable", new object[] { productions });

			Assert.IsTrue(result.Count == 1);
			Helpers.AssertNear(0, result[Nonterminal.Of("S")]);
		}