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); }
public Revert(RevertInputData inputData) { First = inputData.First; Second = inputData.Second; }