public IEnumerator Refresh_AttributesArgAllLocationsSizes_DoesNotThrowException(
            [ValueSource(typeof(ValueSourceCommon), "AllViewLocations")]
            CardinalDirections location,
            [ValueSource(typeof(ValueSourceCommon), "AllViewSizes")]
            ViewSizes size
            )
        {
// Set Up
            SetUpCommon.CreateTestCamera();
            SetUpCommon.CreateTestNameCanvas(TestContext.CurrentContext.Test.Name);

            SubjectDetailView detailView =
                SubjectDetailView.GetView(
                    SetUpCommon.GetUICanvas(),
                    size,
                    location
                    );

            IAttributeData aData = ValueSourceCommon.GetMockAttributeData();

// Assert
            Assert.DoesNotThrow(() => {
                detailView.Refresh(aData);
            });
            yield return(new WaitForSeconds(VisualTimer));

// Tear Down
            TearDownCommon.DestroyAllGameObjects();
        }
Exemplo n.º 2
0
 public void Refresh()
 {
     if (_detailView)
     {
         _detailView.Refresh(
             _attributeData,
             _portraitData,
             _descriptionData
             );
     }
     if (_tooltipView)
     {
         _tooltipView.Refresh(_attributeData);
     }
     if (_actionBarView)
     {
         _actionBarView.Refresh(
             _selfAbilities,
             _locationAbilities,
             _objectAbilities
             );
     }
 }