Ejemplo n.º 1
0
        /// <summary>
        /// Compile VB.NET source, convert it to C#, compile the conversion
        /// and return actions which run each corresponding pair of tests.
        /// </summary>
        public static IEnumerable <object[]> GetCSharpToVisualBasicTestData()
        {
            var testFiles = Directory.GetFiles(Path.Combine(TestConstants.GetTestDataDirectory(), "SelfVerifyingTests/CSToVB"), "*.cs");

            return(testFiles.SelectMany(SelfVerifyingTestFactory.GetSelfVerifyingFacts <CSharpCompiler, VisualBasicCompiler, CSToVBConversion>)
                   .Select(et => new object[] { et })
                   .ToArray());
        }