Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
Unity
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shane Veasy
Unity
Commits
9d3b37e8
Commit
9d3b37e8
authored
7 years ago
by
Stanley Goldman
Browse files
Options
Downloads
Patches
Plain Diff
Cleaning code
parent
6b8554a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tests/TaskSystemIntegrationTests/Tests.cs
+10
-4
10 additions, 4 deletions
src/tests/TaskSystemIntegrationTests/Tests.cs
with
10 additions
and
4 deletions
src/tests/TaskSystemIntegrationTests/Tests.cs
+
10
−
4
View file @
9d3b37e8
...
...
@@ -13,6 +13,13 @@ namespace IntegrationTests
{
class
BaseTest
{
public
BaseTest
()
{
Logger
=
Logging
.
GetLogger
(
GetType
());
}
protected
ILogging
Logger
{
get
;
}
protected
ITaskManager
TaskManager
{
get
;
set
;
}
protected
IProcessManager
ProcessManager
{
get
;
set
;
}
protected
NPath
TestBasePath
{
get
;
private
set
;
}
...
...
@@ -23,7 +30,7 @@ namespace IntegrationTests
public
void
OneTimeSetup
()
{
Logging
.
LogAdapter
=
new
ConsoleLogAdapter
();
//
Logging.TracingEnabled = true;
Logging
.
TracingEnabled
=
true
;
TaskManager
=
new
TaskManager
();
var
syncContext
=
new
ThreadSynchronizationContext
(
Token
);
TaskManager
.
UIScheduler
=
new
SynchronizationContextTaskScheduler
(
syncContext
);
...
...
@@ -73,9 +80,6 @@ namespace IntegrationTests
[
Test
]
public
async
Task
ProcessReadsFromStandardInput
()
{
// var success = false;
// Exception thrown = null;
var
output
=
new
List
<
string
>();
var
input
=
new
List
<
string
>
{
...
...
@@ -90,6 +94,8 @@ namespace IntegrationTests
task
.
OnStart
+=
t
=>
{
Logger
.
Trace
(
"Sending output"
);
var
proc
=
((
IProcess
)
t
).
Process
;
foreach
(
var
item
in
input
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment