public ExtentTest CreateTest(string name, string description = null)
        {
            var extentTest = new ExtentTest(this, name, description);

            CreateTest(extentTest.GetModel());

            return(extentTest);
        }
        public ExtentTest CreateTest <T>(string name, string description = null) where T : IGherkinFormatterModel
        {
            Type type = typeof(T);
            var  obj  = (IGherkinFormatterModel)Activator.CreateInstance(type);

            var extentTest = new ExtentTest(this, obj, name, description);

            CreateTest(extentTest.GetModel());

            return(extentTest);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Allows removing a test from the list
 /// </summary>
 /// <param name="test"><see cref="ExtentTest"/> An ExtentTest object</param>
 public void RemoveTest(ExtentTest test)
 {
     base.RemoveTest(test.GetModel());
 }