Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UnitTest: Added Tests for IntellisenseType, added tests for Nullable,…
… Collections, etc.
- Loading branch information
1 parent
7ff1de9
commit dced085
Showing
21 changed files
with
563 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
declare module server { | ||
interface CollectionModel { | ||
AStringArray: string[]; | ||
AStringIEnumerable: string[]; | ||
AStringICollection: string[]; | ||
AStringIList: string[]; | ||
AStringList: string[]; | ||
AStringCollection: string[]; | ||
ASimpleList: server.Simple[]; | ||
ALongList: number[]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
var server = server || {}; | ||
/// <summary>The CollectionModel class as defined in Lib.Generation.CollectionModel</summary> | ||
server.CollectionModel = function() { | ||
/// <field name="AStringArray" type="String[]">The AStringArray property as defined in Lib.Generation.CollectionModel</field> | ||
this.AStringArray = []; | ||
/// <field name="AStringIEnumerable" type="String[]">The AStringIEnumerable property as defined in Lib.Generation.CollectionModel</field> | ||
this.AStringIEnumerable = []; | ||
/// <field name="AStringICollection" type="String[]">The AStringICollection property as defined in Lib.Generation.CollectionModel</field> | ||
this.AStringICollection = []; | ||
/// <field name="AStringIList" type="String[]">The AStringIList property as defined in Lib.Generation.CollectionModel</field> | ||
this.AStringIList = []; | ||
/// <field name="AStringList" type="String[]">The AStringList property as defined in Lib.Generation.CollectionModel</field> | ||
this.AStringList = []; | ||
/// <field name="AStringCollection" type="String[]">The AStringCollection property as defined in Lib.Generation.CollectionModel</field> | ||
this.AStringCollection = []; | ||
/// <field name="ASimpleList" type="Object[]">The ASimpleList property as defined in Lib.Generation.CollectionModel</field> | ||
this.ASimpleList = []; | ||
/// <field name="ALongList" type="Number[]">The ALongList property as defined in Lib.Generation.CollectionModel</field> | ||
this.ALongList = []; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
namespace Lib.Generation | ||
using System; | ||
|
||
namespace Lib.Generation | ||
{ | ||
public class Simple | ||
{ | ||
public Simple ASimple { get; set; } | ||
public string AString { get; set; } | ||
public bool ABool { get; set; } | ||
public int AnInt { get; set; } | ||
public DateTime ADateTime { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
declare module server { | ||
interface Simple { | ||
ASimple: server.Simple; | ||
AString: string; | ||
ABool: boolean; | ||
AnInt: number; | ||
ADateTime: Date; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
var server = server || {}; | ||
/// <summary>The Simple class as defined in Lib.Generation.Simple</summary> | ||
server.Simple = function() { | ||
/// <field name="ASimple" type="Object">The ASimple property as defined in Lib.Generation.Simple</field> | ||
this.ASimple = { }; | ||
/// <field name="AString" type="String">The AString property as defined in Lib.Generation.Simple</field> | ||
this.AString = ''; | ||
/// <field name="ABool" type="Boolean">The ABool property as defined in Lib.Generation.Simple</field> | ||
this.ABool = false; | ||
/// <field name="AnInt" type="Number">The AnInt property as defined in Lib.Generation.Simple</field> | ||
this.AnInt = 0; | ||
/// <field name="ADateTime" type="Date">The ADateTime property as defined in Lib.Generation.Simple</field> | ||
this.ADateTime = new Date(); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Security.Permissions; | ||
|
||
namespace Lib.Generation | ||
{ | ||
public class SimpleNullable | ||
{ | ||
public bool? ABool { get; set; } | ||
public int? AnInt { get; set; } | ||
|
||
public DateTime? ADateTime { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
declare module server { | ||
interface SimpleNullable { | ||
ABool: boolean; | ||
AnInt: number; | ||
ADateTime: Date; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var server = server || {}; | ||
/// <summary>The SimpleNullable class as defined in Lib.Generation.SimpleNullable</summary> | ||
server.SimpleNullable = function() { | ||
/// <field name="ABool" type="Boolean">The ABool property as defined in Lib.Generation.SimpleNullable</field> | ||
this.ABool = false; | ||
/// <field name="AnInt" type="Number">The AnInt property as defined in Lib.Generation.SimpleNullable</field> | ||
this.AnInt = 0; | ||
/// <field name="ADateTime" type="Date">The ADateTime property as defined in Lib.Generation.SimpleNullable</field> | ||
this.ADateTime = new Date(); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.