GetVersion() public method

public GetVersion ( ) : FitnesseVersion
return FitnesseVersion
 public void GetPre2011Version()
 {
     var file = GetTestFitXml(Pre2011FileName);
     var detector = new VersionDetector(file);
     var result = detector.GetVersion();
     Assert.AreEqual(FitnesseVersion.Pre2011, result);
     Assert.AreNotEqual(FitnesseVersion.Current, result);
 }
        public static XmlFileParser CreateParser(XmlDocument document, DateTime testTime) {
            var detector = new VersionDetector(document);
            var version = detector.GetVersion();

            switch(version) {
                case FitnesseVersion.Current:
                    return new CurrentXmlFileParser(document, testTime);
                case FitnesseVersion.Pre2011:
                    return new Pre2011XmlFileParser(document, testTime);
                default:
                    return null;
            }
        }