blob: e34407a07c400406f2b6201606a11bb430585066 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
using Mono.Cecil;
using Mono.Linker.Tests.TestCases;
namespace Mono.Linker.Tests.TestCasesRunner
{
public class ObjectFactory
{
public virtual TestCaseSandbox CreateSandbox (TestCase testCase)
{
return new TestCaseSandbox (testCase);
}
public virtual TestCaseCompiler CreateCompiler (TestCaseSandbox sandbox, TestCaseCompilationMetadataProvider metadataProvider)
{
return new TestCaseCompiler (sandbox, metadataProvider);
}
public virtual LinkerDriver CreateLinker ()
{
return new LinkerDriver ();
}
public virtual TestCaseMetadataProvider CreateMetadataProvider (TestCase testCase, AssemblyDefinition expectationsAssemblyDefinition)
{
return new TestCaseMetadataProvider (testCase, expectationsAssemblyDefinition);
}
public virtual TestCaseCompilationMetadataProvider CreateCompilationMetadataProvider (TestCase testCase, AssemblyDefinition fullTestCaseAssemblyDefinition)
{
return new TestCaseCompilationMetadataProvider (testCase, fullTestCaseAssemblyDefinition);
}
public virtual LinkerArgumentBuilder CreateLinkerArgumentBuilder (TestCaseMetadataProvider metadataProvider)
{
return new LinkerArgumentBuilder (metadataProvider);
}
}
}
|