summaryrefslogtreecommitdiff
path: root/RhSolutions.ML.Tests
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2023-09-20 14:47:43 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2023-09-20 14:47:43 +0300
commit2bf1e46d12b8e8fa94f3590bd19b772a7d99c214 (patch)
tree59420b5cc6d685028cb8a85bb932b09fb9707a59 /RhSolutions.ML.Tests
parent292f5eaab423b00a62d95344900c670f4775efef (diff)
Add waste pipe
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 77f6991..e7329ce 100644
--- a/RhSolutions.ML.Tests/Tests.cs
+++ b/RhSolutions.ML.Tests/Tests.cs
@@ -117,5 +117,18 @@ public class Tests
};
var prediction = _predEngine.Predict(p);
Assert.That(prediction.Type, Is.EqualTo("Pink"));
+ }
+
+ [TestCase("Труба канализационная")]
+ [TestCase("Труба 110")]
+ [TestCase("Труба 110 500")]
+ public void WastePipeTest(string name)
+ {
+ Product p = new()
+ {
+ Name = name
+ };
+ var prediction = _predEngine.Predict(p);
+ Assert.That(prediction.Type, Is.EqualTo("Труба RAUPIANO"));
}
} \ No newline at end of file