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(); }
public IEnumerator HideDetail_WithDescriptionDataAllLocationsSizes_DoesNotThrowException( [ValueSource(typeof(ValueSourceCommon), "AllViewLocations")] CardinalDirections location, [ValueSource(typeof(ValueSourceCommon), "AllViewSizes")] ViewSizes size ) { // Set Up SetUpCommon.CreateTestCamera(); SetUpCommon.CreateTestNameCanvas( TestContext.CurrentContext.Test.Name ); Subject subjectUnderTest = new Subject( SetUpCommon.GetUICanvas() ); subjectUnderTest.TryAddData( ValueSourceCommon.GetMockDescriptionData() ); subjectUnderTest.ShowDetail(location, size); // Assert yield return(new WaitForSeconds(VisualTimer * .5f)); Assert.DoesNotThrow(() => { subjectUnderTest.HideDetail(); }); yield return(new WaitForSeconds(VisualTimer * .5f)); // Tear Down TearDownCommon.DestroyAllGameObjects(); }
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(); }