public void DataRow()
        {
            ColourDataTable dataTable = new ColourDataTable();
            DataRow         dataRow   = dataTable.Rows[0];

            AssertBuilder codeGen = new AssertBuilder();

            codeGen.Options.ExcludeProperties.Add("DateCreated");
            GetAssertBuilderOutput(codeGen, dataRow);

            Assert.AreEqual(@"Assert.AreEqual(1, target[""Id""]);
Assert.AreEqual(""Red"", target[""Name""]);
Assert.AreEqual(""FF0000"", target[""Rgb""]);".NormaliseCrlf(), codeGen.GetEmittedCode().NormaliseCrlf());
        }
        public void DataTableHonoursInclusiveProperties()
        {
            ColourDataTable dataTable = new ColourDataTable();

            AssertBuilder codeGen = new AssertBuilder();

            codeGen.Options.EnumerateAllProperties = false;
            codeGen.Options.IncludeProperties.Add("Name");
            codeGen.Options.ExcludeProperties.Add("DateCreated");

            GetAssertBuilderOutput(codeGen, dataTable);

            Assert.AreEqual(@"Assert.AreEqual(3, target.Rows.Count);
Assert.AreEqual(""Red"", target.Rows[0][""Name""]);
Assert.AreEqual(""Green"", target.Rows[1][""Name""]);
Assert.AreEqual(""Blue"", target.Rows[2][""Name""]);".NormaliseCrlf(), codeGen.GetEmittedCode().NormaliseCrlf());
        }
        public void DataTable()
        {
            ColourDataTable dataTable = new ColourDataTable();

            AssertBuilder codeGen = new AssertBuilder();

            GetAssertBuilderOutput(codeGen, dataTable);

            Assert.AreEqual(@"Assert.AreEqual(3, target.Rows.Count);
Assert.AreEqual(1, target.Rows[0][""Id""]);
Assert.AreEqual(""Red"", target.Rows[0][""Name""]);
Assert.AreEqual(""FF0000"", target.Rows[0][""Rgb""]);
Assert.AreEqual(Convert.ToDateTime(""29-Mar-2010 16:56:00.000""), target.Rows[0][""DateCreated""]);
Assert.AreEqual(2, target.Rows[1][""Id""]);
Assert.AreEqual(""Green"", target.Rows[1][""Name""]);
Assert.AreEqual(""00FF00"", target.Rows[1][""Rgb""]);
Assert.AreEqual(Convert.ToDateTime(""28-Mar-2010 16:56:00.000""), target.Rows[1][""DateCreated""]);
Assert.AreEqual(3, target.Rows[2][""Id""]);
Assert.AreEqual(""Blue"", target.Rows[2][""Name""]);
Assert.AreEqual(""0000FF"", target.Rows[2][""Rgb""]);
Assert.AreEqual(Convert.ToDateTime(""29-Mar-2010 16:56:00.500""), target.Rows[2][""DateCreated""]);".NormaliseCrlf(), codeGen.GetEmittedCode().NormaliseCrlf());
        }