StoryTeller.Persistence.TestReader.ReadFromFile C# (CSharp) Method

ReadFromFile() public method

public ReadFromFile ( string fileName ) : System.Test
fileName string
return System.Test
        public Test ReadFromFile(string fileName)
        {
            XmlDocument document = new XmlDocument().FromFile(fileName);
            XmlElement element = document.DocumentElement;
            Test test = ReadTest(element);
            test.FileName = Path.GetFileName(fileName);

            return test;
        }