Ejemplo n.º 1
0
 private static IReadOnlyList <TestCase> GetTestCases(string xml)
 {
     using (var converter = new TestConverter(
                new TestLogger(new MessageLoggerStub()),
                sourceAssembly: "unused",
                collectSourceInformation: false))
     {
         return(converter.ConvertTestCases(xml));
     }
 }
Ejemplo n.º 2
0
 public static IReadOnlyCollection <TestCase> ConvertTestCases(string xml)
 {
     using (var testConverter = new TestConverter(
                new TestLogger(new MessageLoggerStub()),
                FakeTestData.AssemblyPath,
                collectSourceInformation: false))
     {
         return(testConverter.ConvertTestCases(xml));
     }
 }
Ejemplo n.º 3
0
        private static IReadOnlyList <TestCase> GetTestCases(string xml)
        {
            var settings = Substitute.For <IAdapterSettings>();

            settings.CollectSourceInformation.Returns(false);
            using (var converter = new TestConverter(
                       new TestLogger(new MessageLoggerStub()),
                       sourceAssembly: "unused",
                       settings))
            {
                return(converter.ConvertTestCases(xml));
            }
        }
Ejemplo n.º 4
0
        public static IReadOnlyCollection <TestCase> ConvertTestCases(string xml)
        {
            var settings = Substitute.For <IAdapterSettings>();

            settings.CollectSourceInformation.Returns(false);
            using (var testConverter = new TestConverter(
                       new TestLogger(new MessageLoggerStub()),
                       FakeTestData.AssemblyPath,
                       settings))
            {
                return(testConverter.ConvertTestCases(xml));
            }
        }