Files
Bucket/Buckets.Test/RainBarrelTest.cs
KäseToatz a33cf50a4c Part 1 & 2
2024-09-25 22:24:42 +02:00

24 lines
568 B
C#

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);
}
}
}