Skip to content

Commit

Permalink
CoddeQL fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RikuVirtanen committed Feb 12, 2024
1 parent 0c8b028 commit 7a16122
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ public async Task TestExecuteProcedure_ProcedureParameter()
Assert.IsTrue(query.Success);
Assert.AreEqual(-1, query.RecordsAffected);
Assert.IsNull(query.ErrorMessage);
Assert.IsTrue(((IEnumerable<dynamic>)query.Data).Any(x => x.Id == 1 && x.LastName == "Suku"));
Assert.AreEqual(1, (int)query.Data[0]["Id"]);
Assert.AreEqual("Suku", (string)query.Data[0]["LastName"]);
}

[TestMethod]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Frends.MicrosoftSQL.ExecuteProcedure.Definitions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Data.SqlClient;
using Newtonsoft.Json.Linq;

namespace Frends.MicrosoftSQL.ExecuteProcedure.Tests;

Expand Down Expand Up @@ -248,6 +249,7 @@ public async Task TestExecuteProcedure_ProcedureParameter()
Assert.IsTrue(insert.Success);
Assert.AreEqual(-1, insert.RecordsAffected);
Assert.IsNull(insert.ErrorMessage);
Assert.IsTrue(((IEnumerable<dynamic>)insert.Data).Any(x => x.Id == 1 && x.LastName == "Suku"));
Assert.AreEqual(1, (int)insert.Data[0]["Id"]);
Assert.AreEqual("Suku", (string)insert.Data[0]["LastName"]);
}
}

0 comments on commit 7a16122

Please sign in to comment.