Exemplo n.º 1
0
        private void CheckTestMethod(string name)
        {
            Configuration config = this.GetConfiguration();

            config.AssemblyToBeAnalyzed = Assembly.GetExecutingAssembly().Location;
            config.TestMethodName       = name;
            using var testMethodInfo    = TestMethodInfo.Create(config);
            Assert.Equal(Assembly.GetExecutingAssembly(), testMethodInfo.Assembly);
            Assert.Equal($"{typeof(EntryPointTests).FullName}.{name}", testMethodInfo.Name);
        }
Exemplo n.º 2
0
        private static void CheckTestMethod(string name)
        {
            Configuration config = Configuration.Create();

            config.AssemblyToBeAnalyzed = Assembly.GetExecutingAssembly().Location;
            config.TestMethodName       = name;
            var testMethodInfo = TestMethodInfo.Create(config);

            Assert.Equal(Assembly.GetExecutingAssembly(), testMethodInfo.Assembly);
            Assert.Equal(GetFullyQualifiedTestName(name), testMethodInfo.Name);
        }