public void SameDice_NulCompareMustThrow_Test() { //Arrange var d = Dice <double> .Build(5.4, 10, 3, false); //Act bool actual = d.SameDice(5.4, null); //Assert }
public void SameDice_NullIdMustThrow_Test() { //Arrange var d = Dice <string> .Build("non_null", 10, 3, false); //Act bool actual = d.SameDice(null, null); //Assert }
public void SameDice_DiffrentIdMustReturnFalse_Test() { //Arrange var someDice = Dice <int> .Build(0, 6, 5, false); var equalityOperation = IntEqualityByLiteral.Build(); //Act bool actual = someDice.SameDice(1, equalityOperation); //Assert Assert.IsFalse(actual); }
public void SameDice_SameIdMustReturnTrue_Test() { //Arrange var someDice = Dice <int> .Build(0, 6, 5, false); var equalityOperation = IntEqualityByLiteral.Build(); bool actual = true; //Act actual = someDice.SameDice(0, equalityOperation); //Assert Assert.IsTrue(actual); }
/* * Build BackGround Elemnts, Info Panel, Dice - and Add it all on gameplay * */ void BuildBAckGround() { backGround = new GraphickObject(); backGround.Build(this.gameObject, "BackGround"); backGround.setImage(blackSquare); backGround.setScale(new Vector3(7, 7, 0)); whiteCenter = new GraphickObject(); whiteCenter.Build(this.gameObject, "WhiteCenter"); whiteCenter.setImage(WhiteSquare); whiteCenter.setScale(new Vector3(4.75f, 4.75f, 0)); whiteCenter.SetLayer(1); panel.Build(whiteCenter.GetGameObject()); panel.ActiviteActivate(false); panel.SetPlayerInfo(player_model); panel.SetPlayerInfo(ai_model); dicer.Build(whiteCenter.GetGameObject()); dicer = dicer.GetDice; }