public void TestVerifyCircleReferences()
        {
            var turtle = new Turtle("jim", new Turtle("kasper", new Turtle("llewellyn", null)));

            turtle.On.On.On = turtle;
            StatePrinterApprovals.Verify(turtle);
        }
Beispiel #2
0
        public void ImportTest_ToManyColumns()
        {
            var sut     = new Group();
            var csvData = "Abbreviation,Active,ActiveYears,Comment,FilingCount,Name,YearsAGO" + Environment.NewLine +
                          "JD,True,2,some comment,1,John Doe0, 2" + Environment.NewLine +
                          "JD,True,2,some comment,0,John Doe1,2" + Environment.NewLine +
                          "JD,True,2,some comment,0,John Doe2,2";

            var result = sut.Import(csvData);

            // Assert
            StatePrinterApprovals.Verify(result);
        }