public IEnumerator Refresh_LocationAbilitiesArg_DoesNotThrowException( [ValueSource(typeof(ValueSourceCommon), "AllViewLocations")] CardinalDirections location, [ValueSource(typeof(ValueSourceCommon), "AllViewSizes")] ViewSizes size ) { // Set Up SetUpCommon.CreateTestCamera(); SetUpCommon.CreateTestNameCanvas( TestContext.CurrentContext.Test.Name ); SetUpCommon.CreateEventSystem(); ActionBarView abView = ActionBarView.GetView( SetUpCommon.GetUICanvas(), size, location ); // Assert Assert.DoesNotThrow(() => { abView.Refresh( null, ValueSourceCommon.StubV3ArgActionDict(5) ); }); yield return(new WaitForSeconds(VisualTimer)); // Tear Down TearDownCommon.DestroyAllGameObjects(); }
public void Refresh() { if (_detailView) { _detailView.Refresh( _attributeData, _portraitData, _descriptionData ); } if (_tooltipView) { _tooltipView.Refresh(_attributeData); } if (_actionBarView) { _actionBarView.Refresh( _selfAbilities, _locationAbilities, _objectAbilities ); } }