public void Should_add_files() { _parsedDocument.AddFile(new ProjectFile("File1", FileType.Compile, "someproject")); var record = new Project("someproject", _parsedDocument); _cache.WhenGeting("ReferencedProject").Return(new Project("", new ProjectDocument(ProjectType.CSharp))); _preparer.Prepare(record); _cache.GetAllProjectFiles().Length.ShouldEqual(1); }