Example #1
0
        public void SwapTest()
        {
            //Arrange
            int a = 10;
            int b = 5;

            int    expectedA = 5;
            int    expectedB = 10;
            string expected  = "510";

            //Act
            SortingAlgorithms.Swap(ref a, ref b);
            string actual = a.ToString() + b.ToString();

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