Skip to content

Instantly share code, notes, and snippets.

View dsibinski's full-sized avatar

Dawid Sibiński dsibinski

View GitHub Profile
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!");
}
class MyObject
{
public int Value { get; set; }
}
class MyObjectEnumerator
{
public bool MoveNext()
{
throw new NotImplementedException();
class MyObjectEnumerator
{
public bool MoveNext()
{
throw new NotImplementedException();
}
public void Reset()
{
throw new NotImplementedException();
class MyObjectEnumerator : IEnumerator<MyObject>
{
public bool MoveNext()
{
throw new NotImplementedException();
}
public void Reset()
{
throw new NotImplementedException();
class MyCollection
{
public IEnumerator<MyObject> GetEnumerator()
{
throw new NotImplementedException();
}
}
class MyObject
{
public int Value { get; set; }
}
class MyCollection : IEnumerable<MyObject>
{
public IEnumerator<MyObject> GetEnumerator()
{
throw new NotImplementedException();
const JsonNetDecycle = require("../../../external/JsonNetDecycle");
// ...
service.getTestPeopleData().then((result) => {
JsonNetDecycle.retrocycle(result);
});
[
{
"Name": "John",
"BestFriend": null
},
{
"Name": "Alicia",
"BestFriend": {
"Name": "John",
"BestFriend": null
var json = JsonConvert.SerializeObject(people, Formatting.Indented,
new JsonSerializerSettings { PreserveReferencesHandling = PreserveReferencesHandling.None });
[
{
"$id": "1",
"Name": "John",
"BestFriend": null
},
{
"$id": "2",
"Name": "Alicia",
"BestFriend": {