public void TestMethodRomanNumbers() { string romanNumber = "MMXVIII"; int number = 2018; int result = RomanNumbers.RomanToInt(romanNumber); Assert.AreEqual(number, result); }
public void HandleRankChange(PostGamePopUpEvent_RankChange rankChangeEvent) { if (!rankChangeEvent.IsPositive) { return; } AddCommand(new ShowRewardPopupCommand($"Rank {RomanNumbers.RomanNumber(rankChangeEvent.NewRank)}!")); }
public void RomanNumbersTest2() { //Arrange int expected = 101; //Act RomanNumbers romanNumbers = new RomanNumbers("CI"); int actual = romanNumbers.RomanToInt(); //Assert Assert.AreEqual(expected, actual, "Method is incorrect"); }
protected override void LoadDataInternal() { HeroData heroData = Main.GameState.CurrentHeroData; if (heroData != null) { ownerNameText.text = heroData.CharacterName + "'s"; tierText.text = "Tier " + RomanNumbers.RomanNumber(heroData.TeleportData.Tier); rankPointsText.text = heroData.RankPoints.ToString(); } else { ownerNameText.text = "Empty"; tierText.text = ""; rankPointsText.text = ""; } }
public override void LoadDataInternal() { ownerNameText.text = MainData.CurrentPlayerData.CharacterName + "'s"; tierText.text = "Tier " + RomanNumbers.RomanNumber(MainData.CurrentPlayerData.CurrentTeleportData.Tier); rankPointsText.text = MainData.CurrentPlayerData.RankPoints.ToString(); }
public void AddGalaxyNumbers(string name, RomanNumbers romanNumeral) { _galaxyNumbersDic.Add(name, romanNumeral); }
public RomanNumbersTests() { romanNumbers = new RomanNumbers(); }
public override string NameTextString() { return("Rank " + RomanNumbers.RomanNumber(Levels.rp.Level((int)values.current))); }