diff --git a/osu.Framework.Tests/Visual/TestCaseAnimation.cs b/osu.Framework.Tests/Visual/TestCaseAnimation.cs index c4a0fcae7e..6a2eb0c74c 100644 --- a/osu.Framework.Tests/Visual/TestCaseAnimation.cs +++ b/osu.Framework.Tests/Visual/TestCaseAnimation.cs @@ -16,7 +16,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] [System.ComponentModel.Description("frame-based animations")] - internal class TestCaseAnimation : TestCase + public class TestCaseAnimation : TestCase { public TestCaseAnimation() { diff --git a/osu.Framework.Tests/Visual/TestCaseBlending.cs b/osu.Framework.Tests/Visual/TestCaseBlending.cs index adb4c3cb20..8c11e0d93c 100644 --- a/osu.Framework.Tests/Visual/TestCaseBlending.cs +++ b/osu.Framework.Tests/Visual/TestCaseBlending.cs @@ -16,7 +16,7 @@ namespace osu.Framework.Tests.Visual { - internal class TestCaseBlending : TestCase + public class TestCaseBlending : TestCase { private readonly Dropdown colourModeDropdown; private readonly Dropdown colourEquation; diff --git a/osu.Framework.Tests/Visual/TestCaseBufferedContainer.cs b/osu.Framework.Tests/Visual/TestCaseBufferedContainer.cs index 47ec9603df..5b3d5f61cb 100644 --- a/osu.Framework.Tests/Visual/TestCaseBufferedContainer.cs +++ b/osu.Framework.Tests/Visual/TestCaseBufferedContainer.cs @@ -9,7 +9,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseBufferedContainer : TestCaseMasking + public class TestCaseBufferedContainer : TestCaseMasking { private readonly BufferedContainer buffer; diff --git a/osu.Framework.Tests/Visual/TestCaseCheckboxes.cs b/osu.Framework.Tests/Visual/TestCaseCheckboxes.cs index 1ff477f6e9..70b6b9c63b 100644 --- a/osu.Framework.Tests/Visual/TestCaseCheckboxes.cs +++ b/osu.Framework.Tests/Visual/TestCaseCheckboxes.cs @@ -11,7 +11,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseCheckboxes : TestCase + public class TestCaseCheckboxes : TestCase { public TestCaseCheckboxes() { diff --git a/osu.Framework.Tests/Visual/TestCaseCircularContainer.cs b/osu.Framework.Tests/Visual/TestCaseCircularContainer.cs index 644fec7a0a..424415ddab 100644 --- a/osu.Framework.Tests/Visual/TestCaseCircularContainer.cs +++ b/osu.Framework.Tests/Visual/TestCaseCircularContainer.cs @@ -10,7 +10,7 @@ namespace osu.Framework.Tests.Visual { [System.ComponentModel.Description(@"Checking for bugged corner radius")] - internal class TestCaseCircularContainer : TestCase + public class TestCaseCircularContainer : TestCase { private SingleUpdateCircularContainer container; diff --git a/osu.Framework.Tests/Visual/TestCaseCircularProgress.cs b/osu.Framework.Tests/Visual/TestCaseCircularProgress.cs index c4337dc7a4..b2c07cc4e1 100644 --- a/osu.Framework.Tests/Visual/TestCaseCircularProgress.cs +++ b/osu.Framework.Tests/Visual/TestCaseCircularProgress.cs @@ -13,7 +13,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseCircularProgress : TestCase + public class TestCaseCircularProgress : TestCase { private readonly CircularProgress clock; diff --git a/osu.Framework.Tests/Visual/TestCaseContextMenu.cs b/osu.Framework.Tests/Visual/TestCaseContextMenu.cs index c9beb14532..ec6cd59425 100644 --- a/osu.Framework.Tests/Visual/TestCaseContextMenu.cs +++ b/osu.Framework.Tests/Visual/TestCaseContextMenu.cs @@ -14,7 +14,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseContextMenu : TestCase + public class TestCaseContextMenu : TestCase { private const int start_time = 0; private const int duration = 1000; diff --git a/osu.Framework.Tests/Visual/TestCaseDelayedLoad.cs b/osu.Framework.Tests/Visual/TestCaseDelayedLoad.cs index 9fe46cf053..2ed4ce676c 100644 --- a/osu.Framework.Tests/Visual/TestCaseDelayedLoad.cs +++ b/osu.Framework.Tests/Visual/TestCaseDelayedLoad.cs @@ -14,7 +14,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseDelayedLoad : TestCase + public class TestCaseDelayedLoad : TestCase { private const int panel_count = 2048; diff --git a/osu.Framework.Tests/Visual/TestCaseDrawSizePreservingFillContainer.cs b/osu.Framework.Tests/Visual/TestCaseDrawSizePreservingFillContainer.cs index f581575606..339f200626 100644 --- a/osu.Framework.Tests/Visual/TestCaseDrawSizePreservingFillContainer.cs +++ b/osu.Framework.Tests/Visual/TestCaseDrawSizePreservingFillContainer.cs @@ -12,7 +12,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseDrawSizePreservingFillContainer : TestCase + public class TestCaseDrawSizePreservingFillContainer : TestCase { public TestCaseDrawSizePreservingFillContainer() { diff --git a/osu.Framework.Tests/Visual/TestCaseDropdownBox.cs b/osu.Framework.Tests/Visual/TestCaseDropdownBox.cs index fee0ff5f13..f65c40e5de 100644 --- a/osu.Framework.Tests/Visual/TestCaseDropdownBox.cs +++ b/osu.Framework.Tests/Visual/TestCaseDropdownBox.cs @@ -14,7 +14,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseDropdownBox : TestCase + public class TestCaseDropdownBox : TestCase { private const int items_to_add = 10; diff --git a/osu.Framework.Tests/Visual/TestCaseEffects.cs b/osu.Framework.Tests/Visual/TestCaseEffects.cs index c4e789334a..fb61cd56c0 100644 --- a/osu.Framework.Tests/Visual/TestCaseEffects.cs +++ b/osu.Framework.Tests/Visual/TestCaseEffects.cs @@ -16,7 +16,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] [System.ComponentModel.Description("implementing the IEffect interface")] - internal class TestCaseEffects : TestCase + public class TestCaseEffects : TestCase { public TestCaseEffects() { diff --git a/osu.Framework.Tests/Visual/TestCaseFillFlowContainer.cs b/osu.Framework.Tests/Visual/TestCaseFillFlowContainer.cs index 43c17ce030..093d7817a2 100644 --- a/osu.Framework.Tests/Visual/TestCaseFillFlowContainer.cs +++ b/osu.Framework.Tests/Visual/TestCaseFillFlowContainer.cs @@ -20,7 +20,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseFillFlowContainer : TestCase + public class TestCaseFillFlowContainer : TestCase { private FillDirectionDropdown selectionDropdown; diff --git a/osu.Framework.Tests/Visual/TestCaseLocalisation.cs b/osu.Framework.Tests/Visual/TestCaseLocalisation.cs index ff97285422..f13d1ff7fc 100644 --- a/osu.Framework.Tests/Visual/TestCaseLocalisation.cs +++ b/osu.Framework.Tests/Visual/TestCaseLocalisation.cs @@ -18,7 +18,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseLocalisation : TestCase + public class TestCaseLocalisation : TestCase { // ReSharper disable once PrivateFieldCanBeConvertedToLocalVariable private readonly LocalisationEngine engine; //keep a reference to avoid GC of the engine diff --git a/osu.Framework.Tests/Visual/TestCaseMasking.cs b/osu.Framework.Tests/Visual/TestCaseMasking.cs index 6660b0c794..45bfce5066 100644 --- a/osu.Framework.Tests/Visual/TestCaseMasking.cs +++ b/osu.Framework.Tests/Visual/TestCaseMasking.cs @@ -15,7 +15,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseMasking : TestCase + public class TestCaseMasking : TestCase { protected Container TestContainer; diff --git a/osu.Framework.Tests/Visual/TestCaseNestedHover.cs b/osu.Framework.Tests/Visual/TestCaseNestedHover.cs index 80b9927a74..af54842643 100644 --- a/osu.Framework.Tests/Visual/TestCaseNestedHover.cs +++ b/osu.Framework.Tests/Visual/TestCaseNestedHover.cs @@ -13,7 +13,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseNestedHover : TestCase + public class TestCaseNestedHover : TestCase { public TestCaseNestedHover() { diff --git a/osu.Framework.Tests/Visual/TestCaseNestedMenus.cs b/osu.Framework.Tests/Visual/TestCaseNestedMenus.cs index 42dfbc6c24..64fbe8f361 100644 --- a/osu.Framework.Tests/Visual/TestCaseNestedMenus.cs +++ b/osu.Framework.Tests/Visual/TestCaseNestedMenus.cs @@ -19,7 +19,7 @@ namespace osu.Framework.Tests.Visual { - internal class TestCaseNestedMenus : TestCase + public class TestCaseNestedMenus : TestCase { private const int max_depth = 5; private const int max_count = 5; diff --git a/osu.Framework.Tests/Visual/TestCasePropertyBoundaries.cs b/osu.Framework.Tests/Visual/TestCasePropertyBoundaries.cs index 53ba7aa801..51632e6ab1 100644 --- a/osu.Framework.Tests/Visual/TestCasePropertyBoundaries.cs +++ b/osu.Framework.Tests/Visual/TestCasePropertyBoundaries.cs @@ -12,7 +12,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] [System.ComponentModel.Description("ensure validity of drawables when receiving certain values")] - internal class TestCasePropertyBoundaries : TestCase + public class TestCasePropertyBoundaries : TestCase { [BackgroundDependencyLoader] private void load() diff --git a/osu.Framework.Tests/Visual/TestCaseRigidBody.cs b/osu.Framework.Tests/Visual/TestCaseRigidBody.cs index 4236613b68..aebd1f6beb 100644 --- a/osu.Framework.Tests/Visual/TestCaseRigidBody.cs +++ b/osu.Framework.Tests/Visual/TestCaseRigidBody.cs @@ -15,7 +15,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseRigidBody : TestCase + public class TestCaseRigidBody : TestCase { private readonly TestRigidBodySimulation sim; diff --git a/osu.Framework.Tests/Visual/TestCaseScreen.cs b/osu.Framework.Tests/Visual/TestCaseScreen.cs index dbdc660b4a..d35b6c6614 100644 --- a/osu.Framework.Tests/Visual/TestCaseScreen.cs +++ b/osu.Framework.Tests/Visual/TestCaseScreen.cs @@ -17,7 +17,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseScreen : TestCase + public class TestCaseScreen : TestCase { public TestCaseScreen() { diff --git a/osu.Framework.Tests/Visual/TestCaseScrollableFlow.cs b/osu.Framework.Tests/Visual/TestCaseScrollableFlow.cs index d0512cad2d..84873de3c4 100644 --- a/osu.Framework.Tests/Visual/TestCaseScrollableFlow.cs +++ b/osu.Framework.Tests/Visual/TestCaseScrollableFlow.cs @@ -14,7 +14,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseScrollableFlow : TestCase + public class TestCaseScrollableFlow : TestCase { private readonly ScheduledDelegate boxCreator; diff --git a/osu.Framework.Tests/Visual/TestCaseSearchContainer.cs b/osu.Framework.Tests/Visual/TestCaseSearchContainer.cs index c6cb8847b4..ff2781989a 100644 --- a/osu.Framework.Tests/Visual/TestCaseSearchContainer.cs +++ b/osu.Framework.Tests/Visual/TestCaseSearchContainer.cs @@ -14,7 +14,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseSearchContainer : TestCase + public class TestCaseSearchContainer : TestCase { public TestCaseSearchContainer() { diff --git a/osu.Framework.Tests/Visual/TestCaseSizing.cs b/osu.Framework.Tests/Visual/TestCaseSizing.cs index 2a5df4d70b..ff1a064eaa 100644 --- a/osu.Framework.Tests/Visual/TestCaseSizing.cs +++ b/osu.Framework.Tests/Visual/TestCaseSizing.cs @@ -15,7 +15,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] [System.ComponentModel.Description("potentially challenging size calculations")] - internal class TestCaseSizing : TestCase + public class TestCaseSizing : TestCase { private readonly Container testContainer; diff --git a/osu.Framework.Tests/Visual/TestCaseSpriteText.cs b/osu.Framework.Tests/Visual/TestCaseSpriteText.cs index e98bc3b77d..062309aff1 100644 --- a/osu.Framework.Tests/Visual/TestCaseSpriteText.cs +++ b/osu.Framework.Tests/Visual/TestCaseSpriteText.cs @@ -10,7 +10,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseSpriteText : TestCase + public class TestCaseSpriteText : TestCase { public TestCaseSpriteText() { diff --git a/osu.Framework.Tests/Visual/TestCaseTabControl.cs b/osu.Framework.Tests/Visual/TestCaseTabControl.cs index 71c81a9f46..3d877048bd 100644 --- a/osu.Framework.Tests/Visual/TestCaseTabControl.cs +++ b/osu.Framework.Tests/Visual/TestCaseTabControl.cs @@ -18,7 +18,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseTabControl : TestCase + public class TestCaseTabControl : TestCase { public TestCaseTabControl() { diff --git a/osu.Framework.Tests/Visual/TestCaseTextBox.cs b/osu.Framework.Tests/Visual/TestCaseTextBox.cs index 65e0d86c0c..338e0ab1d9 100644 --- a/osu.Framework.Tests/Visual/TestCaseTextBox.cs +++ b/osu.Framework.Tests/Visual/TestCaseTextBox.cs @@ -11,7 +11,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseTextBox : TestCase + public class TestCaseTextBox : TestCase { public TestCaseTextBox() { diff --git a/osu.Framework.Tests/Visual/TestCaseTextFlow.cs b/osu.Framework.Tests/Visual/TestCaseTextFlow.cs index b9972d7784..c18ba898d3 100644 --- a/osu.Framework.Tests/Visual/TestCaseTextFlow.cs +++ b/osu.Framework.Tests/Visual/TestCaseTextFlow.cs @@ -15,7 +15,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] [System.ComponentModel.Description("word-wrap and paragraphs")] - internal class TestCaseTextFlow : TestCase + public class TestCaseTextFlow : TestCase { public TestCaseTextFlow() { diff --git a/osu.Framework.Tests/Visual/TestCaseTooltip.cs b/osu.Framework.Tests/Visual/TestCaseTooltip.cs index 9590e3a966..b4fa42c666 100644 --- a/osu.Framework.Tests/Visual/TestCaseTooltip.cs +++ b/osu.Framework.Tests/Visual/TestCaseTooltip.cs @@ -15,7 +15,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseTooltip : TestCase + public class TestCaseTooltip : TestCase { private readonly Container testContainer; diff --git a/osu.Framework.Tests/Visual/TestCaseTriangles.cs b/osu.Framework.Tests/Visual/TestCaseTriangles.cs index d4c93a97ec..20edf8e163 100644 --- a/osu.Framework.Tests/Visual/TestCaseTriangles.cs +++ b/osu.Framework.Tests/Visual/TestCaseTriangles.cs @@ -13,7 +13,7 @@ namespace osu.Framework.Tests.Visual { [TestFixture] - internal class TestCaseTriangles : TestCase + public class TestCaseTriangles : TestCase { private readonly Container testContainer; diff --git a/osu.Framework/Testing/TestBrowser.cs b/osu.Framework/Testing/TestBrowser.cs index 7d13647865..7ae44f2b73 100644 --- a/osu.Framework/Testing/TestBrowser.cs +++ b/osu.Framework/Testing/TestBrowser.cs @@ -63,12 +63,15 @@ public TestBrowser(string assemblyNamespace = null) assemblies = AppDomain.CurrentDomain.GetAssemblies().Where(n => n.FullName.StartsWith("osu") || assemblyNamespace != null && n.FullName.StartsWith(assemblyNamespace)).ToList(); //we want to build the lists here because we're interested in the assembly we were *created* on. - foreach (Assembly asm in assemblies) + foreach (Assembly asm in assemblies.ToList()) { - var tests = asm.GetLoadableTypes().Where(t => t.IsSubclassOf(typeof(TestCase)) && !t.IsAbstract).ToList(); + var tests = asm.GetLoadableTypes().Where(t => t.IsSubclassOf(typeof(TestCase)) && !t.IsAbstract && t.IsPublic).ToList(); if (!tests.Any()) + { + assemblies.Remove(asm); continue; + } foreach (Type type in tests) TestTypes.Add(type);