示例#1
0
        public void FirstElementIsThreeAndIsReplaced()
        {
            List <string> data = new List <string>()
            {
                "3"
            };

            var swapper = new ThreeSwapper();
            var result  = swapper.swap(data);

            Assert.IsTrue(result.First() == "Fizz");
        }
示例#2
0
        public void OneElementDivisibleOneIsNot()
        {
            List <string> data = new List <string>()
            {
                "3",
                "4"
            };

            var swapper = new ThreeSwapper();
            var result  = swapper.swap(data);

            Assert.IsTrue(result[0] == "Fizz" && result[1] == "4");
        }