Exemplo n.º 1
0
 static void Main(string[] args)
 {
     List<String> Result = new List<String>();
     var nums = new NumsDivBy3and5 { iNums = 100 };  // Numbers between 1 and 100
     Result = nums.NumDivs();
     foreach (String s in Result)
         Console.WriteLine(s);
     Console.ReadKey();
 }
Exemplo n.º 2
0
        public void TestMethod1()
        {
            //Arrange
            NumsDivBy3and5 oNumsDivBy3and5 = new NumsDivBy3and5() { iNums = 100 };

            //Act
            System.Collections.Generic.List<String> ExpectedResult = GetExpectedResult();
            System.Collections.Generic.List<String> Result = oNumsDivBy3and5.NumDivs();

            //Assert
            Assert.AreEqual(ExpectedResult.ToString(), Result.ToString());
        }