Part 1 & 2

This commit is contained in:
KäseToatz
2024-09-25 22:24:42 +02:00
commit a33cf50a4c
14 changed files with 382 additions and 0 deletions

View File

@ -0,0 +1,24 @@
using Buckets.Logic;
namespace Buckets.Test
{
[TestClass]
public class RainBarrelTest
{
[TestMethod]
public void RainBarrel_DisallowedCapacity_ShouldThrow()
{
Assert.ThrowsException<ArgumentException>(() =>
{
Rainbarrel rainbarrel = new(90, 0);
});
}
[TestMethod]
public void RainBarrel_AllowedCapacity_ShouldEqual100()
{
Rainbarrel rainbarrel = new(100, 0);
Assert.AreEqual(100, rainbarrel.Capacity);
}
}
}