public void ShouldRetrieveClassProperties()
 {
     var codeFile = new CodeFileInfo(string.Empty, string.Empty);
     const string className = "Class";
     var aClass = new DeclerationInfo(className, codeFile);
     Assert.That(aClass.Name, Is.EqualTo(className));
     Assert.That(aClass.CodeFileInfo, Is.EqualTo(codeFile));
 }
Example #2
0
        public ICodeFileInfo FromFile(FileInfo file)
        {
            var codeFile =  new CodeFileInfo(file.Name, file.DirectoryName);
            var declerations = declerationInfoLoader.ExamineSource(codeFile);

            foreach (var decleration in declerations)
                codeFile.AddDecleration(decleration);

            return codeFile;
        }