示例#1
0
        public void PowerRanger_Fifth_Case()
        {
            // Arrange
            int n        = 4;
            int a        = 250;
            int b        = 1300;
            int expected = 3;

            // Act
            int actual = Challenge32.PowerRanger(n, a, b);

            // Assert
            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void PowerRanger_Fourth_Case()
        {
            // Arrange
            int n        = 5;
            int a        = 31;
            int b        = 33;
            int expected = 1;

            // Act
            int actual = Challenge32.PowerRanger(n, a, b);

            // Assert
            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void PowerRanger_Second_Case()
        {
            // Arrange
            int n        = 3;
            int a        = 1;
            int b        = 27;
            int expected = 3;

            // Act
            int actual = Challenge32.PowerRanger(n, a, b);

            // Assert
            Assert.AreEqual(expected, actual);
        }
示例#4
0
        public void PowerRanger_Third_Case()
        {
            // Arrange
            int n        = 10;
            int a        = 1;
            int b        = 5;
            int expected = 1;

            // Act
            int actual = Challenge32.PowerRanger(n, a, b);

            // Assert
            Assert.AreEqual(expected, actual);
        }
示例#5
0
        public void PowerRanger_First_Case()
        {
            // Arrange
            int n        = 2;
            int a        = 49;
            int b        = 65;
            int expected = 2;

            // Act
            int actual = Challenge32.PowerRanger(n, a, b);

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