Ejemplo n.º 1
0
        public void SetUp()
        {
            var bus = MockRepository.GenerateMock <IMessageBus>();

            _parser = new NUnitTestResponseParser(bus, TestRunner.NUnit);
            var sources = new TestRunInfo[]
            {
                new TestRunInfo(new Project("project1", null), "/SomePath/AutoTest.WinForms.Test/bin/Debug/AutoTest.WinForms.Test.dll")
            };

            _parser.Parse(File.ReadAllText("TestResources/NUnit/singleAssembly.txt"), sources, true);
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            var bus = MockRepository.GenerateMock <IMessageBus>();

            _parser = new NUnitTestResponseParser(bus, TestRunner.NUnit);
            var sources = new TestRunInfo[]
            {
                new TestRunInfo(new Project("project1", null), @"C:\Users\ack\src\SomeProject\SomeFile.dll")
            };
            var text = File.ReadAllText("TestResources/NUnit/FailsToParse.txt");

            text = text.Replace("\r\n", "").Replace("\n", "");
            _parser.Parse(text, sources, true);
        }
Ejemplo n.º 3
0
        public void SetUp()
        {
            var bus = MockRepository.GenerateMock <IMessageBus>();

            _parser = new NUnitTestResponseParser(bus, TestRunner.XUnit);
            var sources = new TestRunInfo[]
            {
                new TestRunInfo(new Project("project1", null), string.Format("/home/ack/backup/WorkWin7/src/DotNET/Temp/SomeProjectUsingXUnit/bin/Debug/SomeProjectUsingXUnit.dll", Path.DirectorySeparatorChar))
            };
            var text = File.ReadAllText("TestResources/NUnit/XUnitOutput.txt");

            text = text.Replace("\r\n", "").Replace("\n", "");
            _parser.Parse(text, sources, false);
        }
        public void SetUp()
        {
            var bus = MockRepository.GenerateMock <IMessageBus>();

            _parser = new NUnitTestResponseParser(bus, TestRunner.NUnit);
            var sources = new TestRunInfo[]
            {
                new TestRunInfo(new Project("project1", null), "/home/ack/src/AutoTest.Net/src/AutoTest.TestCore/bin/Debug/AutoTest.TestCore.dll"),
                new TestRunInfo(new Project("project2", null), "/home/ack/src/AutoTest.Net/src/AutoTest.Test/bin/Debug/AutoTest.Test.dll"),
                new TestRunInfo(new Project("project3", null), "/home/ack/src/AutoTest.Net/src/AutoTest.WinForms.Test/bin/Debug/AutoTest.WinForms.Test.dll")
            };

            _parser.Parse(File.ReadAllText("TestResources/NUnit/NewOutput.txt"), sources, false);
        }