diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2023-11-13 22:40:23 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2023-11-13 22:40:23 +0300 |
commit | 61a4fe90b89cc127444405597a2590f8537474e5 (patch) | |
tree | 44bfa66169cba2a7f2b79d959bf762b5e9bdeaa2 /MindBox.Tests/CircleCreateTests.cs |
Initial commit
Diffstat (limited to 'MindBox.Tests/CircleCreateTests.cs')
-rw-r--r-- | MindBox.Tests/CircleCreateTests.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/MindBox.Tests/CircleCreateTests.cs b/MindBox.Tests/CircleCreateTests.cs new file mode 100644 index 0000000..b9cfd96 --- /dev/null +++ b/MindBox.Tests/CircleCreateTests.cs @@ -0,0 +1,16 @@ +namespace MindBox.Tests; + +public class CircleCreateTests +{ + [Test] + public void ZeroRadius() + { + Assert.Throws<ArgumentException>(() => new Circle { Radius = 0.0 }); + } + + [Test] + public void NegativeRadius() + { + Assert.Throws<ArgumentException>(() => new Circle { Radius = -1.0 }); + } +} |