Example #1
0
 public void Collections_StringList()
 {
     _packageTester
     .TestReferenceTypeWithName(ClassName)
     .Exists()
     .TestPropertyWithName(StringListProperty)
     .Exists()
     .TypescriptNameIs(TypeScriptHelper.StringTypeName + "[]");
 }
 public void PrimitiveTypes_TestInt()
 {
     _packageTester
     .TestReferenceTypeWithName(ClassName)
     .Exists()
     .TestPropertyWithName(IntegerPropName)
     .Exists()
     .TypeMetadataIs(typeof(int));
 }
 public void Inheritence_Simple()
 {
     _packageTester.TestReferenceTypeWithName(SimpleDerivedClassName)
     .BaseClassNameIs(SimpleBaseClassName);
 }
 public void GenericTypes_ClassName()
 {
     _packageTester.TestReferenceTypeWithName(Class_SimpleGeneric)
     .ClassNameIs($"{Class_SimpleGeneric}<{GenericParameterName}>");
 }
 public void Complex_AnyForNotExtracted()
 {
     _packageTester.TestReferenceTypeWithName(Class_Extracted)
     .TestPropertyWithName(Prop_NotExtracted)
     .TypescriptNameIs(TypeScriptHelper.AnyTypeName);
 }
Example #6
0
 public void SameName_DoesntAppendNumberForFirst()
 {
     _packageTester.TestReferenceTypeWithName("TestClass", 0)
     .ClassNameIs("TestClass");
 }
Example #7
0
 public void DocumentationTests_ClassHasComments()
 {
     _packageTester.TestReferenceTypeWithName("SimpleClass")
     .CommentsAre("These are comments");
 }
Example #8
0
 public void Enums_PropertyTypeIsEnum()
 {
     _packageTester.TestReferenceTypeWithName("SimpleClass")
     .TestPropertyWithName("EnumProp")
     .TypescriptNameIs($"{EnumTester.TestNamespace}.SimpleEnum");
 }