Esempio n. 1
0
        public void SetOneTwoThree_WithoutArguments_SetOneTwoThree()
        {
            // Arrange
            MyActionClass actionClass = new MyActionClass();
            Action        action      = new Action(actionClass.SetOneTwoThree);

            // Act
            action();

            // Assert
            Assert.AreEqual(123, actionClass.Result);
        }
Esempio n. 2
0
        public void MultiplyAndSet_WithOneTwoMinusOneTwo_SetMinusFour()
        {
            // Arrange
            MyActionClass actionClass = new MyActionClass();

            // TODO Create an action for the method under the test.

            // Act
            // TODO Call the action with parameters.

            // Assert
            Assert.AreEqual(-4, actionClass.Result);
        }
Esempio n. 3
0
        public void SumAndSet_WithOneTwoThree_SetSix()
        {
            // Arrange
            MyActionClass actionClass = new MyActionClass();

            // TODO Create an action for the method under the test.

            // Act
            // TODO Call the action with parameters.

            // Assert
            Assert.AreEqual(6, actionClass.Result);
        }
Esempio n. 4
0
        public void SubtractAndSet_WithThreeFour_SetMinusOne()
        {
            // Arrange
            MyActionClass actionClass = new MyActionClass();

            // TODO Create an action for the method under the test.

            // Act
            // TODO Call the action with parameters.

            // Assert
            Assert.AreEqual(-1, actionClass.Result);
        }
Esempio n. 5
0
        public void SetResult_WithTwoThreeFour_SetOneTwoThree()
        {
            // Arrange
            MyActionClass actionClass = new MyActionClass();

            // TODO Create an action for the method under the test.

            // Act
            // TODO Call the action with parameters.

            // Assert
            Assert.AreEqual(234, actionClass.Result);
        }