예제 #1
0
        public void Display_Test()
        {
            var subject = new InterfaceDeclaration(new ExportKeyword(), new Identifier("JeppesTest"), null,
                                                   ImmutableArray <IMemberDeclaration> .Empty
                                                   .Add(new PropertyDeclaration("name", new PredefinedType(TypescriptBuiltInTypes.String)))
                                                   .Add(new PropertyDeclaration("isTrue", new PredefinedType(TypescriptBuiltInTypes.Boolean)))
                                                   .Add(new PropertyDeclaration("array", new ArrayType(new TypeReference("Super",
                                                                                                                         ImmutableArray <TypeParameter> .Empty
                                                                                                                         .Add(new TypeParameter(new PredefinedType(TypescriptBuiltInTypes.Boolean))))))
                                                        )
                                                   );


            _testOutputHelper.WriteLine(subject.Display());
        }