NArrange.Tests.CSharp.CSharpTestFile.CSharpTestFile C# (CSharp) Method

CSharpTestFile() public method

Creates a new test file using the specified resource.
public CSharpTestFile ( string resourceName, bool targetCSharp6 = false ) : System.CodeDom.Compiler
resourceName string Name of the resource.
targetCSharp6 bool Set to true if C# 6 features are used. This will use the new Microsoft CodeDomCompiler, otherwise the old one is used.
return System.CodeDom.Compiler
        public CSharpTestFile(string resourceName, bool targetCSharp6 = false)
        {
            _resourceName = resourceName;
            _assembly = GetAssembly(resourceName, targetCSharp6);
        }