CFGLibTest.Unit.TestCFGToCNFEmptyProb.TestGetNullable07 C# (CSharp) Method

TestGetNullable07() private method

private TestGetNullable07 ( ) : void
return 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")]);
		}