Skip to content

Commit

Permalink
Tiny formatting changes in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-jitbit committed Oct 28, 2022
1 parent 1b0e14a commit 8315c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MapDataReader.Tests/TestActualCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ public void TestStringAssign()
[TestMethod]
public void TestDatatReader()
{
//create datatable with test data
var dt = new DataTable();
dt.Columns.AddRange(new[] { new DataColumn("ID", typeof(int)), new DataColumn("Name", typeof(string)), new DataColumn("LaBoolissimmo", typeof(bool)) });
dt.Rows.Add(123, "ggg", true);
dt.Rows.Add(3, "fgdk", false);
var dr = dt.CreateDataReader();

var list = dr.ToMyObject();
var list = dt.CreateDataReader().ToMyObject();

Assert.IsTrue(list[0].Id == 123);
Assert.IsTrue(list[0].Name == "ggg");
Expand Down

0 comments on commit 8315c41

Please sign in to comment.