public void TestStatement(string csharpStatement, string expectedTypeScriptStatement) { var actual = TypeScriptTranslator.TranslateStatement(csharpStatement, s_References); CheckSucceeds(actual, expectedTypeScriptStatement); TypeScriptValidator.Validate(actual.Text); }
public void TestStatementFails(string csharpStatement, params DiagnosticDescriptor[] diagnostics) { CheckFails(TypeScriptTranslator.TranslateStatement(csharpStatement, s_References), diagnostics); }