Exemple #1
0
        public static void ClassInitialize(TestContext context)
        {
            ResourceExplorer = new ResourceExplorer()
                               .AddFolder(Path.Combine(TestUtils.GetProjectPath(), "Tests", nameof(FunctionsTests)), monitorChanges: false);

            // this will test that we are registering the custom functions
            var component = new AdaptiveComponentRegistration();
        }
Exemple #2
0
        public void TestPathResolverNullChecks()
        {
            var ac = new AdaptiveComponentRegistration();

            foreach (var resolver in ac.GetPathResolvers())
            {
                try
                {
                    resolver.TransformPath(null);
                    Assert.Fail($"Should have thrown exception with null for matches() {resolver.GetType().Name}");
                }
                catch (ArgumentNullException)
                {
                }
            }
        }