Example #1
0
        public void TestType(string csharpType, string expectedTypeScriptType)
        {
            var actual = TypeScriptTranslator.TranslateType(csharpType, s_References);

            CheckSucceeds(actual, expectedTypeScriptType);
            TypeScriptValidator.Validate(actual + "v = null;");
        }
Example #2
0
 public void TestTypeFails(string csharpType, params DiagnosticDescriptor[] diagnostics)
 {
     CheckFails(TypeScriptTranslator.TranslateType(csharpType, s_References), diagnostics);
 }