void timer_Tick(object sender, EventArgs e) { vm.Add(i, random.NextDouble()); i += 1; if (vm.Power.Count == 250) { timer.Stop(); } }
public void AddWorksForPositiveAndNegative(int a, int b, int result) { // arrange var vm = new MyViewModel(); // act var actual = vm.Add(a, b); // assert Assert.Equal(result, actual); }
public void TestAdd() { // arrange var vm = new MyViewModel(); // act var result = vm.Add(2, 3); // assert Assert.Equal(5, result); }