public void SelectedMovementPattern_SetSameValue_ReturnsSameValueTrue() { var movementPatternVM = new MovementPatternVM(new MovementPattern(null)) { Name = "Fly" }; var trainingTabVM = new TrainingTabVM(null, new EntityStorageVM(null)) { SelectedMovementPattern = movementPatternVM }; trainingTabVM.SelectedMovementPattern = movementPatternVM; Assert.AreEqual(trainingTabVM.SelectedMovementPattern.Name, "Fly"); }
public void Name_SetDifferentValue_FirstValueFalse() { var movementPattern = new MovementPattern(null); var movementPatternVM = new MovementPatternVM(movementPattern) { Name = "Pattern 1" }; movementPatternVM.Name = "Pattern 2"; string actual = movementPatternVM.Name; Assert.AreNotEqual("Pattern 1", actual); }
public void Name_SetSameValue_SameValueTrue() { var movementPattern = new MovementPattern(null); var movementPatternVM = new MovementPatternVM(movementPattern) { Name = "Pattern 1" }; movementPatternVM.Name = "Pattern 1"; string actual = movementPatternVM.Name; Assert.AreEqual("Pattern 1", actual); }
public void SelectedMovementPattern_SetDifferentValue_ReturnsFirstValueFalse() { var movementPatternVM = new MovementPatternVM(new MovementPattern(null)) { Name = "Fly" }; var movementPatternVM2 = new MovementPatternVM(new MovementPattern(null)) { Name = "Run" }; var trainingTabVM = new TrainingTabVM(null, new EntityStorageVM(null)) { SelectedMovementPattern = movementPatternVM }; trainingTabVM.SelectedMovementPattern = movementPatternVM2; Assert.AreNotEqual(trainingTabVM.SelectedMovementPattern.Name, "Fly"); }
public void SelectedMovementPattern_SetDifferentValue_ReturnsSecondValueTrue() { var movementPatternVM = new MovementPatternVM(new MovementPattern(null)) { Name = "Fly" }; var movementPatternVM2 = new MovementPatternVM(new MovementPattern(null)) { Name = "Run" }; var simulationTabVM = new SimulationTabVM(null, new EntityStorageVM(null)) { SelectedMovementPattern = movementPatternVM }; simulationTabVM.SelectedMovementPattern = movementPatternVM2; Assert.AreEqual(simulationTabVM.SelectedMovementPattern.Name, "Run"); }