From 53373da5460e5f868f031dc9af1f19b87e3c1ecf Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Mon, 25 Sep 2023 12:52:45 +0200 Subject: [PATCH] chore: add tests --- Client.Test.Integration/QueryWriteTest.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Client.Test.Integration/QueryWriteTest.cs b/Client.Test.Integration/QueryWriteTest.cs index 5b9b5c1..0f5aa2d 100644 --- a/Client.Test.Integration/QueryWriteTest.cs +++ b/Client.Test.Integration/QueryWriteTest.cs @@ -69,6 +69,11 @@ public async Task QueryWrite() var points = await client.QueryPoints(sql).ToListAsync(); Assert.That(points, Has.Count.EqualTo(1)); Assert.That(points.First().GetField("value"), Is.EqualTo(123.0)); + + points = await client.QueryPoints($"SELECT * FROM {measurement} where \"testId\" = {testId}").ToListAsync(); + Assert.That(points, Has.Count.EqualTo(1)); + Assert.That(points.First().GetField("value"), Is.EqualTo(123.0)); + Assert.That(points.First().GetTag("type"), Is.EqualTo("used")); } [Test]