public void roverDirection_OK_Test_2() { Perseverance pers = new Perseverance(5, 5, 1, 2, 'N', "LMLMLMLMM"); //pers.xLocation = 1; //pers.yLocation = 2; //pers.position = 'N'; //pers.steps = "LMLMLMLMM"; //pers.xMax = 5; //pers.yMax = 5; pers.Run(); Assert.AreEqual(pers.xLocation, 1); Assert.AreEqual(pers.yLocation, 3); Assert.AreEqual(pers.position, 'N'); }
public void roverDirection_OK_Test_1() { Perseverance pers = new Perseverance(5, 5, 3, 3, 'E', "MMRMMRMRRM"); //pers.xLocation = 3; //pers.yLocation = 3; //pers.Position = 'E'; //pers.steps = "MMRMMRMRRM"; //pers.xMax = 5; //pers.yMax = 5; pers.Run(); Assert.AreEqual(pers.xLocation, 5); Assert.AreEqual(pers.yLocation, 1); Assert.AreEqual(pers.position, 'E'); }
public override int GetHashCode() { int hash = 1; if (CardId != 0) { hash ^= CardId.GetHashCode(); } if (Player != 0) { hash ^= Player.GetHashCode(); } if (Credit != 0) { hash ^= Credit.GetHashCode(); } if (Singing != 0) { hash ^= Singing.GetHashCode(); } if (Dancing != 0) { hash ^= Dancing.GetHashCode(); } if (Composing != 0) { hash ^= Composing.GetHashCode(); } if (Popularity != 0) { hash ^= Popularity.GetHashCode(); } if (Charm != 0) { hash ^= Charm.GetHashCode(); } if (Perseverance != 0) { hash ^= Perseverance.GetHashCode(); } if (Puzzle != 0) { hash ^= Puzzle.GetHashCode(); } if (CardName.Length != 0) { hash ^= CardName.GetHashCode(); } if (Gold != 0) { hash ^= Gold.GetHashCode(); } if (GrowthRateS != 0F) { hash ^= GrowthRateS.GetHashCode(); } if (GrowthRateD != 0F) { hash ^= GrowthRateD.GetHashCode(); } if (GrowthRateC != 0F) { hash ^= GrowthRateC.GetHashCode(); } if (GrowthRatePo != 0F) { hash ^= GrowthRatePo.GetHashCode(); } if (GrowthRateCh != 0F) { hash ^= GrowthRateCh.GetHashCode(); } if (GrowthRatePe != 0F) { hash ^= GrowthRatePe.GetHashCode(); } hash ^= gainSceneIds_.GetHashCode(); hash ^= evoSceneIds_.GetHashCode(); if (NewViewEvo != 0) { hash ^= NewViewEvo.GetHashCode(); } if (MemoriesItem != 0) { hash ^= MemoriesItem.GetHashCode(); } if (Used != 0) { hash ^= Used.GetHashCode(); } return(hash); }