예제 #1
0
        public void XPlusYShouldBeZ(int x, int y, int z)
        {
            // Arrange
            var pakketjesOpteller = new PakketjesOptellerBuilder().Build();

            // Act
            var actual = pakketjesOpteller.Sum(x, y);

            // Assert
            actual.Should().Be(z);
        }
예제 #2
0
        public void OnePlusOneShouldBeTwo()
        {
            // Arrange
            var pakketjesOpteller = new PakketjesOptellerBuilder().Build();

            // Act
            var actual = pakketjesOpteller.Sum(1, 1);

            // Assert
            actual.Should().Be(2);
        }