Created
November 16, 2012 05:59
-
-
Save davidroberts63/4084620 to your computer and use it in GitHub Desktop.
Example use of NUnit TestCase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestCase(0, "Date1", DateTimeFeature.Day)] | |
[TestCase(1, "Date2", DateTimeFeature.Day | DateTimeFeature.Year)] | |
public void Test_Good_Date_Descriptor(int featureIndex, string name, DateTimeFeature feature) | |
{ | |
var desc = Descriptor.Create<FakeDate>(); | |
Assert.AreEqual(name, desc.Features[featureIndex].Name); | |
Assert.AreEqual(new DateTimeProperty(feature).Features == ((DateTimeProperty)desc.Features[featureIndex]).Features); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment