summaryrefslogtreecommitdiff
path: root/RhSolutions.ML.Tests
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2023-09-21 09:46:12 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2023-09-21 09:46:12 +0300
commit741fa8e4b5c350b386b54b04fa2b7271fad3372e (patch)
tree087a41edc01099e266a1586c27c3b302f1a3926b /RhSolutions.ML.Tests
parenta3c730d520e0fdd679f7f4543341f0f1ec6ef322 (diff)
Add elbows
Diffstat (limited to 'RhSolutions.ML.Tests')
-rw-r--r--RhSolutions.ML.Tests/Tests.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/RhSolutions.ML.Tests/Tests.cs b/RhSolutions.ML.Tests/Tests.cs
index 3f6960a..9972598 100644
--- a/RhSolutions.ML.Tests/Tests.cs
+++ b/RhSolutions.ML.Tests/Tests.cs
@@ -117,6 +117,19 @@ public class Tests
Assert.That(prediction.Type, Is.EqualTo("Переходник с накидной гайкой"));
}
+ [TestCase("Угольник 16")]
+ [TestCase("Угольник 16 90")]
+ [TestCase("Угольник 50 45")]
+ public void ElbowTest(string name)
+ {
+ Product p = new()
+ {
+ Name = name
+ };
+ var prediction = _predEngine.Predict(p);
+ Assert.That(prediction.Type, Is.EqualTo("Угольник RAUTITAN"));
+ }
+
[TestCase("Труба stabil 16")]
[TestCase("Труба stabil")]
public void StabilPipeTest(string name)