コード例 #1
0
ファイル: EntryPointTests.cs プロジェクト: microsoft/coyote
        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);
        }
コード例 #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);
        }