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); }
public void SameName_DoesntAppendNumberForFirst() { _packageTester.TestReferenceTypeWithName("TestClass", 0) .ClassNameIs("TestClass"); }
public void DocumentationTests_ClassHasComments() { _packageTester.TestReferenceTypeWithName("SimpleClass") .CommentsAre("These are comments"); }
public void Enums_PropertyTypeIsEnum() { _packageTester.TestReferenceTypeWithName("SimpleClass") .TestPropertyWithName("EnumProp") .TypescriptNameIs($"{EnumTester.TestNamespace}.SimpleEnum"); }