예제 #1
0
        public void AbsoluteValue_ShouldReturnValidResult_ForInt16()
        {
            // Arrange.
            Int16 negativeTwo = -2;
            Int16 zero        = 0;
            Int16 two         = 2;

            // Act.
            var resultOne   = negativeTwo.AbsoluteValue();
            var resultTwo   = zero.AbsoluteValue();
            var resultThree = two.AbsoluteValue();

            // Assert.
            resultOne.Should().Be(2);
            resultTwo.Should().Be(0);
            resultThree.Should().Be(2);
        }