Files

47 lines
1.8 KiB
C#

using NUnit.Framework;
using System.Collections.Generic;
using System.Threading;
namespace Strata.ContinuousImprovement.JazzEntityFrameworkStub
{
public partial class JazzEntityFrameworkFactory
{
#region TestCaseData
public static IEnumerable<TestCaseData> GetFrameworks()
{
yield return new TestCaseData(new JazzEntityFrameworkFactory())
.SetName("{m} With FrameworkFactory");
yield return new TestCaseData(new JazzEntityFrameworkFactory { TestName = string.Empty })
.SetName("{m} Without Context");
}
public static IEnumerable<TestCaseData> GetFrameworksWithCancellation()
{
yield return new TestCaseData(new JazzEntityFrameworkFactory(), CancellationToken.None)
.SetName("{m} With FrameworkFactory")
.Ignore("Under investigation");
yield return new TestCaseData(new JazzEntityFrameworkFactory { TestName = string.Empty }, CancellationToken.None)
.SetName("{m} Without Context");
yield return new TestCaseData(new JazzEntityFrameworkFactory(), new CancellationToken(true))
.SetName("{m} With FrameworkFactory Canceled");
yield return new TestCaseData(new JazzEntityFrameworkFactory { TestName = string.Empty }, new CancellationToken(true))
.SetName("{m} Without Context Canceled");
yield return new TestCaseData(new JazzEntityFrameworkFactory(), new CancellationToken(false))
.SetName("{m} With FrameworkFactory not Canceled");
yield return new TestCaseData(new JazzEntityFrameworkFactory { TestName = string.Empty }, new CancellationToken(false))
.SetName("{m} Without Context not Canceled");
}
#endregion
}
}