예제 #1
0
        public void OmEnOm_ThrowingExceptionOnNegativeInput(int n)
        {
            // Arrange

            // Act & Assert
            Assert.Throws(typeof(OmEnOmNegativeValueException), () => Opgave3.OmEnOm(n));
        }
예제 #2
0
        public void OmEnOm(int n, long expected)
        {
            int actual;

            // Arrange

            // Act
            actual = Opgave3.OmEnOm(n);

            // Assert
            Assert.AreEqual(expected, actual);
        }