public static void Run() { int[] array = { 7, 3, 21, 123, 3134, 34, 5, 7, 9, 12, 1203, 11, 42 }; Console.WriteLine(new string('*', 40)); Console.WriteLine("Intial array values: {0}", string.Join(", ", array)); PrintNumbers.PrintNumbersUsingLambda(array); PrintNumbers.PrintNumbersUsingLINQ(array); Console.WriteLine(new string('*', 40)); }
public void TestMethod1() { // Arrange PrintNumbers.PrintNumbers processor = new PrintNumbers.PrintNumbers(); // Act TypeNumber typeNumber1 = processor.ProcessNumber(1); TypeNumber typeNumber2 = processor.ProcessNumber(3); TypeNumber typeNumber3 = processor.ProcessNumber(5); TypeNumber typeNumber4 = processor.ProcessNumber(15); // Assert Assert.AreEqual(TypeNumber.None, typeNumber1); Assert.AreEqual(TypeNumber.Ansible, typeNumber2); Assert.AreEqual(TypeNumber.Australia, typeNumber3); Assert.AreEqual(TypeNumber.AnsibleAustralia, typeNumber4); }