From fc06cf7caa5701e4251572e3c87604572648cc97 Mon Sep 17 00:00:00 2001 From: LarsBrubaker Date: Fri, 8 Apr 2022 14:16:06 -0700 Subject: [PATCH] Adding test that nylon has garolite temps set --- Submodules/agg-sharp | 2 +- Tests/MatterControl.Tests/MatterControl/OemProfileTests.cs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 93bcdc151..5f8b9d518 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 93bcdc151fc9a3916c321d0453a6b0ef33248a30 +Subproject commit 5f8b9d518d71c559bca4711611bf92de46a3ffb0 diff --git a/Tests/MatterControl.Tests/MatterControl/OemProfileTests.cs b/Tests/MatterControl.Tests/MatterControl/OemProfileTests.cs index c8ce1a3ab..c15ed6838 100644 --- a/Tests/MatterControl.Tests/MatterControl/OemProfileTests.cs +++ b/Tests/MatterControl.Tests/MatterControl/OemProfileTests.cs @@ -249,6 +249,13 @@ M300 S3000 P30 ; Resume Tone"; Assert.IsTrue(material.ContainsKey(key), $"Material {files[i].FullName} should include {key} setting"); } + if (profile.GetValue(SettingsKey.layer_name).ToLower().Contains("nylon")) + { + // make sure the setting for garolite is greater than 0 and not NC + double.TryParse(profile.GetValue(SettingsKey.bed_temperature_garolite), out double temp); + Assert.Greater(temp, 0); + } + foreach (var key in notPresentKeys) { Assert.IsTrue(!material.ContainsKey(key), $"Material {files[i].FullName} should not include {key} setting");