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();
        }
Exemple #2
0
 // CONSTRUCTORS ~~~~~~~~~~
 public Subject(Canvas canvas)
 {
     _canvas     = canvas;
     _detailView = SubjectDetailView.GetView(canvas);
     _detailView.gameObject.SetActive(false);
     _actionBarView = ActionBarView.GetView(canvas);
     _actionBarView.gameObject.SetActive(false);
     _selfAbilities     = new List <Action>();
     _locationAbilities = new Dictionary <Action, Action <Vector3> >();
     _objectAbilities   = new Dictionary <Action, Action <GameObject[]> >();
 }