public void ShouldFailToBuildAClassWithAValidReferenceIfReferenceLoactionNotSupplied()
 {
     var unreferencedClass = GetCodeFile("ReferencedDependency.cs.txt");
     var buildFiles = new BuildCodeFiles(unreferencedClass, new List<IDependencyInfo>(), new List<IReferenceInfo>());
     var compilationResult = new BuildFilesCompiler().Compile(buildFiles);
     Assert.That(compilationResult.HasErrors);
 }
 public void ShouldBuildASingleEmptyClassWithoutError()
 {
     var emptyClass = GetCodeFile("EmptyClass.cs.txt");
     var buildFiles = new BuildCodeFiles(emptyClass, new List<IDependencyInfo>(), new List<IReferenceInfo>());
     var compilationResult = new BuildFilesCompiler().Compile(buildFiles);
     Assert.That(!compilationResult.HasErrors);
     Assert.That(!string.IsNullOrEmpty(compilationResult.AssemblyLocation));
 }
 public void ShouldBuildAClassWithAValidReferenceIfReferenceLoactionIsSupplied()
 {
     var unreferencedClass = GetCodeFile("ReferencedDependency.cs.txt");
     var referenceInfo = GetReference("ICSharpCode.NRefactory");
     var buildFiles = new BuildCodeFiles(unreferencedClass, new List<IDependencyInfo>(), new List<IReferenceInfo> { referenceInfo });
     var compilationResult = new BuildFilesCompiler().Compile(buildFiles);
     Assert.That(compilationResult.HasErrors);
 }