public void EnumerateMovies() { var ng = new NUmberGenorator(); foreach (var movie in ng.FavMovies()) { _output.WriteLine(movie); } }
public void GettingTheNUmbersA() { var ng = new NUmberGenorator(); var sw = new Stopwatch(); sw.Start(); var numbers = ng.GetNumbersOneToOneHundred(); foreach (var n in numbers) { if (n == 10) { break; } } sw.Stop(); _output.WriteLine($"That took {sw.ElapsedMilliseconds}ms"); }