Example #1
0
        public void DoRevert_OneTime_CorrectState()
        {
            var inputData = new RevertInputData {First = 5, Second = 88};
            var algorithm = new Revert(inputData);

            algorithm.DoRevert();

            Assert.Equal(inputData.First, algorithm.Second);
            Assert.Equal(inputData.Second, algorithm.First);
        }
Example #2
0
 public Revert(RevertInputData inputData)
 {
     First = inputData.First;
     Second = inputData.Second;
 }