private void MenuExerciseClick(object param) { ExercisePage exercisePage = new ExercisePage(); exercisePage.DataContext = new ExerciseViewModel(CurrentUser); Navigator.SubNavigationService.Navigate(exercisePage); }
public void Test2_The_Pause_Clock_Hides_At_The_Beginning() { ExercisePage page = new ExercisePage(); bool expect = false; bool actual = page.ISPauClkShow; Assert.AreEqual(expect, actual); }
public void Test1_The_Start_Clock_Shows_At_The_Beginning() { ExercisePage page = new ExercisePage(); bool expect = true; bool actual = page.IsStrClkShow; Assert.AreEqual(expect, actual); }
public MainViewModel(User currentUser) { CurrentUser = currentUser; ExercisePage exercisePage = new ExercisePage(); exercisePage.DataContext = new ExerciseViewModel(CurrentUser); Navigator.SubNavigationService.Navigate(exercisePage); }
public void Test14_The_Correction_Of_Video() { ExercisePage page = new ExercisePage(); Sports expect = Sports.JumpingJacks; Sports actual = page.ExerciseName; Assert.AreEqual(expect, actual); }
public void Test17_Location_Of_Start_Clock_And_Pause_Clock() { ExercisePage page = new ExercisePage(); Point expect = page.PauseClock.Location; Point actual = page.StartClock.Location; Assert.AreEqual(expect, actual); }
public void Test16_Height_Of_Start_Clock_And_Pause_Clock() { ExercisePage page = new ExercisePage(); int expect = page.PauseClock.Height; int actual = page.StartClock.Height; Assert.AreEqual(expect, actual); }
public void Test7_The_Start_Clock_Shows_When_Pausing() { ExercisePage page = new ExercisePage(); page.Pause(); bool expect = true; bool actual = page.IsStrClkShow; Assert.AreEqual(expect, actual); }
public void Test6_Pause_0f_Video() { ExercisePage page = new ExercisePage(); page.Pause(); string expect = "pause"; string actual = page.State; Assert.AreEqual(expect, actual); }
public void Test5_The_Pause_Clock_Hides_When_Playing() { ExercisePage page = new ExercisePage(); page.Pause(); bool expect = false; bool actual = page.ISPauClkShow; Assert.AreEqual(expect, actual); }
public void Test4_The_Start_Clock_Hides_When_Playing() { ExercisePage page = new ExercisePage(); page.Start(); bool expect = false; bool actual = page.IsStrClkShow; Assert.AreEqual(expect, actual); }
public void Test3_The_Video_Is_Played_When_Starting() { ExercisePage page = new ExercisePage(); page.Start(); string expect = "start"; string actual = page.State; Assert.AreEqual(expect, actual); }
public void Test19_Cursor_When_Hovering_Pause_Clock() { ExercisePage page = new ExercisePage(); page.ReSize(); Cursor expect = Cursors.Hand; Cursor actual = page.PauseClock.Cursor; Assert.AreSame(expect, actual); }
public void Test10_Stop_Of_Video() { ExercisePage page = new ExercisePage(); page.Timer = 0; page.TestTimerTick(); string expect = "stop"; string actual = page.State; Assert.AreEqual(expect, actual); }
public void Test11_Whether_Clock_Is_Reseted() { ExercisePage page = new ExercisePage(); page.Timer = -1; page.TestTimerTick(); int expect = 10; int actual = page.Timer; Assert.AreEqual(expect, actual); }
public void Test9_Pause_0f_Video_Animation() { ExercisePage page = new ExercisePage(); page.Timer = 3; page.TestStartandPause(); int expect = 2; int actual = page.Timer; Assert.AreEqual(expect, actual); }
public void Test12_The_Start_Clock_Shows_After_Reset() { ExercisePage page = new ExercisePage(); page.Timer = -1; page.TestTimerTick(); bool expect = true; bool actual = page.IsStrClkShow; Assert.AreEqual(expect, actual); }
public void Test13_The_Pause_Clock_Hides_After_Reset() { ExercisePage page = new ExercisePage(); page.Timer = -1; page.TestTimerTick(); bool expect = false; bool actual = page.ISPauClkShow; Assert.AreEqual(expect, actual); }