Beispiel #1
0
        /// <summary>
        /// Verifies the feature in the specified file.
        /// </summary>
        /// <param name="path">The path.</param>
        /// <param name="stepDefinitions">The assemblies, types, or objects containing step definitions.</param>
        public static void File(string path, params object[] stepDefinitions)
        {
            var feature = new Feature();

            new PlainTextReader().ReadTo(Read.File(path), feature);
            AddStepDefinitions(feature, stepDefinitions);
            feature.Verify();
        }
Beispiel #2
0
 /// <summary>
 /// Reads the file.
 /// </summary>
 /// <param name="path">The path to the file.</param>
 public void ReadFile(string path)
 {
     this.ReadText(Read.File(path));
 }