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_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 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 IEnumerator RegisterViewData_AttributeViewDataArg_DoesNotThrowException() { // Set Up GameObject testObj = new GameObject("testobj"); RootWindows testMono = testObj.AddComponent <RootWindows>(); IAttributeData testData = ValueSourceCommon.GetMockAttributeData(); // Assert Assert.DoesNotThrow(() => { RootWindows.RegisterViewData("test", testData); }); yield return(new WaitForSeconds(VisualTimer)); // Tear Down TearDownCommon.DestroyAllGameObjects(); }
public IEnumerator RegisterObjectAbility_NoArgObjectArrayArgActionArgs_DoesNotThrowException() { // Set Up GameObject testObj = new GameObject("testobj"); RootWindows testMono = testObj.AddComponent <RootWindows>(); // Assert Assert.DoesNotThrow(() => { RootWindows.RegisterObjectAbility( "test", ValueSourceCommon.GetMockNoArgAction(), ValueSourceCommon.GetMockObjectArrayArgAction() ); }); yield return(new WaitForSeconds(VisualTimer)); // Tear Down TearDownCommon.DestroyAllGameObjects(); }