geekbot/Tests/TestData.cs

21 lines
634 B
C#
Raw Normal View History

2019-05-12 01:38:56 +02:00
using Xunit;
namespace Tests
{
/// <summary>
/// Represents a set of data for a theory. Data can be added to the data set using the collection initializer syntax.
/// </summary>
/// <typeparam name="T"></typeparam>
public class TestData<T> : TheoryData
{
/// <summary>
/// Adds a theory to the Test
/// </summary>
/// <param name="testName">Name of the Test</param>
/// <param name="testObject">Data used in the Test</param>
public void Add(string testName, T testObject)
{
AddRow(testName, testObject);
}
}
}