Beispiel #1
0
        public void ReverseAndNot_MaxInt32_ReturnsReversedAndOriginal()
        {
            //Arrange - initialize objects
            Reverser reverser = new Reverser();
            //Act
            var result = reverser.ReverseAndNot(Int32.MaxValue);

            //Assert
            Assert.AreEqual("74638474122147483647", result);
        }
Beispiel #2
0
        public void ReverseAndNot_ValidInt_ReturnsReversedAndOriginal()
        {
            //Arrange - initialize objects
            Reverser reverser = new Reverser();
            //Act
            var result = reverser.ReverseAndNot(1234);

            //Assert
            Assert.That("43211234" == result);
        }