public void SourceFormat_FromNonStringInputStringLiteral_ShouldParse() { Input = new NonStringInput(new StringLiteral("Hello, Combinator")); var actual = SourceFormat.Parse(String.Empty); Assert.That(actual, Is.EqualTo("Hello, Combinator")); }
public void SourceFormat_FromNonStringInputIntLiteral_ShouldParse() { Input = new NonStringInput(new IntLiteral(42)); var actual = SourceFormat.Parse(String.Empty); Assert.That(actual, Is.EqualTo("42")); }