public void VerifyStatName_MatchesCalculator() { string statName = "TestStatName"; IStatCalculator mockStatCalculator = Substitute.For <IStatCalculator>(); mockStatCalculator.GetStatName(Arg.Any <string>()).Returns(statName); UnitStatPM testPM = new UnitStatPM(Substitute.For <IUnit>(), "TestStat", mockStatCalculator); Assert.AreEqual(testPM.ViewModel.GetPropertyValue <string>(UnitStatPM.STAT_NAME_PROPERTY), statName); }
private void SetStatNameProperty() { ViewModel.SetProperty(STAT_NAME_PROPERTY, mStatCalculator.GetStatName(Stat)); }