This file contains hidden or 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
| public class CypressTestsBase | |
| { | |
| protected void RunCypressTest(string cypressSpecFilePath) | |
| { | |
| var process = new System.Diagnostics.Process(); | |
| var testAssemblyPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); | |
| if (string.IsNullOrEmpty(testAssemblyPath)) | |
| { | |
| throw new Exception("Cannot find test assembly path!"); | |
| } |
This file contains hidden or 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
| class MyObject | |
| { | |
| public int Value { get; set; } | |
| } | |
| class MyObjectEnumerator | |
| { | |
| public bool MoveNext() | |
| { | |
| throw new NotImplementedException(); |
This file contains hidden or 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
| class MyObjectEnumerator | |
| { | |
| public bool MoveNext() | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public void Reset() | |
| { | |
| throw new NotImplementedException(); |
This file contains hidden or 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
| class MyObjectEnumerator : IEnumerator<MyObject> | |
| { | |
| public bool MoveNext() | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| public void Reset() | |
| { | |
| throw new NotImplementedException(); |
This file contains hidden or 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
| class MyCollection | |
| { | |
| public IEnumerator<MyObject> GetEnumerator() | |
| { | |
| throw new NotImplementedException(); | |
| } | |
| } |
This file contains hidden or 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
| class MyObject | |
| { | |
| public int Value { get; set; } | |
| } | |
| class MyCollection : IEnumerable<MyObject> | |
| { | |
| public IEnumerator<MyObject> GetEnumerator() | |
| { | |
| throw new NotImplementedException(); |
This file contains hidden or 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
| const JsonNetDecycle = require("../../../external/JsonNetDecycle"); | |
| // ... | |
| service.getTestPeopleData().then((result) => { | |
| JsonNetDecycle.retrocycle(result); | |
| }); |
This file contains hidden or 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
| [ | |
| { | |
| "Name": "John", | |
| "BestFriend": null | |
| }, | |
| { | |
| "Name": "Alicia", | |
| "BestFriend": { | |
| "Name": "John", | |
| "BestFriend": null |
This file contains hidden or 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
| var json = JsonConvert.SerializeObject(people, Formatting.Indented, | |
| new JsonSerializerSettings { PreserveReferencesHandling = PreserveReferencesHandling.None }); |
This file contains hidden or 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
| [ | |
| { | |
| "$id": "1", | |
| "Name": "John", | |
| "BestFriend": null | |
| }, | |
| { | |
| "$id": "2", | |
| "Name": "Alicia", | |
| "BestFriend": { |