From b800806b4618c5d2f2fafc412ea433a90f27c310 Mon Sep 17 00:00:00 2001 From: "Oleg V. Kozlyuk" Date: Sat, 28 Jan 2023 16:59:39 +0300 Subject: [PATCH] Adding test for default settings (#263) --- .../DefaultSettingsTests.cs | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ClickHouse.Client.Tests/DefaultSettingsTests.cs diff --git a/ClickHouse.Client.Tests/DefaultSettingsTests.cs b/ClickHouse.Client.Tests/DefaultSettingsTests.cs new file mode 100644 index 00000000..eb7d7a02 --- /dev/null +++ b/ClickHouse.Client.Tests/DefaultSettingsTests.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ClickHouse.Client.ADO; +using NUnit.Framework; + +namespace ClickHouse.Client.Tests +{ + public class DefaultSettingsTests + { + [Test] + public void DefaultSettingsShouldMatch() + { + var builder = new ClickHouseConnectionStringBuilder(); + Assert.AreEqual(true, builder.UseCustomDecimals); + Assert.AreEqual(true, builder.Compression); + Assert.AreEqual(true, builder.UseServerTimezone); + Assert.AreEqual(false, builder.UseSession); + } + } +}