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

TestGetNullable06() private method

private TestGetNullable06 ( ) : void
return void
		public void TestGetNullable06() {
			var productions = new HashSet<Production> {
				CFGParser.Production("<S> -> ε"),
				CFGParser.Production("<S> -> <S> <S> <S>"),
			};

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

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