public void TestableUIBehaviour_MultiWildCardPathTest()
        {
            var testable = new TestableUIBehaviourComponent()
            {
                Path = "wildcards.multiMatches.rocks",
                Type = "Type",
            };
            var fixes = Cache.GetFixes("OnCreate", testable);

            NUnit.Framework.Assert.AreEqual(1, fixes.Count);
            NUnit.Framework.Assert.AreEqual("MultiWildCardPath", fixes[0].Path);
            testable = new TestableUIBehaviourComponent()
            {
                Path = "multiMatches.rocks",
                Type = "Type",
            };
            fixes = Cache.GetFixes("OnCreate", testable);
            NUnit.Framework.Assert.AreEqual(1, fixes.Count);
            NUnit.Framework.Assert.AreEqual("MultiWildCardPath", fixes[0].Path);
            testable = new TestableUIBehaviourComponent()
            {
                Path = "wildcards.multiMatches",
                Type = "Type",
            };
            fixes = Cache.GetFixes("OnCreate", testable);
            NUnit.Framework.Assert.AreEqual(1, fixes.Count);
            NUnit.Framework.Assert.AreEqual("MultiWildCardPath", fixes[0].Path);
        }
        public void TestableUIBehaviour_TypeTest()
        {
            var testable = new TestableUIBehaviourComponent()
            {
                Path = "Path",
                Type = "UIAction",
            };
            var fixes = Cache.GetFixes("OnCreate", testable);

            NUnit.Framework.Assert.AreEqual(1, fixes.Count);
            NUnit.Framework.Assert.AreEqual("TypeTest", fixes[0].Path);
        }
        public void TestableUIBehaviour_ComplexWildCardPathTest()
        {
            var testable = new TestableUIBehaviourComponent()
            {
                Path = "Root.Menu.UI.details.content-1.path",
                Type = "Type",
            };
            var fixes = Cache.GetFixes("OnCreate", testable);

            NUnit.Framework.Assert.AreEqual(1, fixes.Count);
            NUnit.Framework.Assert.AreEqual("ComplexWildCardPath", fixes[0].Path);
        }
        public void TestableUIBehaviour_EndWildCardPathTest()
        {
            var testable = new TestableUIBehaviourComponent()
            {
                Path = "wildCardPath.start.with.explosion!",
                Type = "Type",
            };
            var fixes = Cache.GetFixes("OnCreate", testable);

            NUnit.Framework.Assert.AreEqual(1, fixes.Count);
            NUnit.Framework.Assert.AreEqual("EndWildCardPath", fixes[0].Path);
        }
        public void TestableUIBehaviour_StartWildCardPathTest()
        {
            var testable = new TestableUIBehaviourComponent()
            {
                Path = "this.is.some.wildCardPath",
                Type = "Type",
            };
            var fixes = Cache.GetFixes("OnCreate", testable);

            NUnit.Framework.Assert.AreEqual(1, fixes.Count);
            NUnit.Framework.Assert.AreEqual("StartWildCardPath", fixes[0].Path);
        }
        public void TestableUIBehaviour_MultiMatches()
        {
            var testable = new TestableUIBehaviourComponent()
            {
                Path = "simplePath",
                Type = "UIAction",
            };
            var fixes = Cache.GetFixes("OnCreate", testable);

            NUnit.Framework.Assert.AreEqual(2, fixes.Count);
            NUnit.Framework.Assert.IsTrue(fixes.Select(x => x.Path).Contains("SimplePath"));
            NUnit.Framework.Assert.IsTrue(fixes.Select(x => x.Path).Contains("TypeTest"));
        }