Beispiel #1
0
    public void TestLoopToJson()
    {
        var t    = new TestLoop(10);
        var json = Piekson.ToJson(t);

        Assert.AreEqual("{\"a\":10}", json);
    }
Beispiel #2
0
 public void Loops()
 {
     ExactSize(() =>
     {
         var x = new TestLoop();
         var y = new TestLoop {
             x = x
         };
         x.y = y;
         return(x);
     });
 }
Beispiel #3
0
 public TestLoop(int i)
 {
     a        = i;
     testLoop = this;
 }