예제 #1
0
 /// <summary>
 /// Logs the start node by calling <see cref="IRunnerLogger.TestStart"/>. The start node was added
 /// in xUnit.net 1.1, so it will only be present when the test assembly is linked against xunit.dll
 /// version 1.1 or later.
 /// </summary>
 /// <param name="startNode">The start node.</param>
 /// <param name="logger">The logger.</param>
 /// <returns>Returns true if the user wishes to continue running tests; returns false otherwise.</returns>
 public static bool LogStartNode(XmlNode startNode, IRunnerLogger logger)
 {
     return logger.TestStart(startNode.Attributes["name"].Value,
                             startNode.Attributes["type"].Value,
                             startNode.Attributes["method"].Value);
 }
예제 #2
0
 /// <summary>
 /// Logs the start node by calling <see cref="IRunnerLogger.TestStart"/>. The start node was added
 /// in xUnit.net 1.1, so it will only be present when the test assembly is linked against xunit.dll
 /// version 1.1 or later.
 /// </summary>
 /// <param name="startNode">The start node.</param>
 /// <param name="logger">The logger.</param>
 /// <returns>Returns true if the user wishes to continue running tests; returns false otherwise.</returns>
 public static bool LogStartNode(XmlNode startNode, IRunnerLogger logger)
 {
     return(logger.TestStart(startNode.Attributes["name"].Value,
                             startNode.Attributes["type"].Value,
                             startNode.Attributes["method"].Value));
 }
예제 #3
0
        public static bool LogStartNode(XmlNode startNode, IRunnerLogger logger)
        {
            Guard.ArgumentNotNull("startNode", startNode);
            Guard.ArgumentNotNull("logger", logger);

            return logger.TestStart(startNode.Attributes["name"].Value,
                                    startNode.Attributes["type"].Value,
                                    startNode.Attributes["method"].Value);
        }