Ejemplo n.º 1
0
        //[Test]
        public void View_Receives_FileNameOfSingleAssembly()
        {
            string path      = "C:\\git\\projects\\pull-request\\SomeAssembly.AcceptanceTests.dll";
            var    arguments = new TestFilesLoadingEventArgs(new[] { path });

            Model.Events.TestsLoading += Raise.Event <TestFilesLoadingEventHandler>(arguments);
        }
        private void NotifyTestsLoading(TestFilesLoadingEventArgs args)
        {
            var message = args.TestFilesLoading.Count == 1 ?
                          $"Loading Assembly: {args.TestFilesLoading[0]}" :
                          $"Loading {args.TestFilesLoading.Count} Assemblies...";

            _view.OnTestAssembliesLoading(message);
        }
Ejemplo n.º 3
0
        //[Test]
        public void View_Receives_CountOfMultipleAssemblies()
        {
            var arguments = new TestFilesLoadingEventArgs(new[]
            {
                "C:\\git\\projects\\pull-request\\SomeAssembly.Tests.dll",
                "C:\\git\\projects\\pull-request\\SomeAssembly.IntegrationTests.dll",
                "C:\\git\\projects\\pull-request\\SomeAssembly.AcceptanceTests.dll"
            });

            Model.Events.TestsLoading += Raise.Event <TestFilesLoadingEventHandler>(arguments);
        }
Ejemplo n.º 4
0
        public void View_Receives_FileNameOfSingleAssembly()
        {
            var arguments = new TestFilesLoadingEventArgs(new[]
            {
                "C:\\git\\projects\\pull-request\\SomeAssembly.AcceptanceTests.dll"
            });

            Model.Events.TestsLoading += Raise.Event <TestFilesLoadingEventHandler>(arguments);

            View.Received().OnTestAssembliesLoading("Loading Assembly: SomeAssembly.AcceptanceTests.dll");
        }