public static IEnumerable <TestCase> AllTestCases() { var tf = new TestFactory <ReaderAction>(new ReaderValueTestFactory(), new EncodingBehavior { ForParsing = true }); var tds = tf.MakeAllValueTests(); var ws = ValueTests <ReaderAction> .MakeWhitespaceOptions(); foreach (var td in tds) { foreach (var w in ws) { var testName = td.Name; if (w.Name != "") { testName = testName + " [with whitespace: " + w.Name + "]"; } var input = w.Encoding + String.Join(w.Encoding, td.Encoding) + w.Encoding; yield return(new TestCase { Name = testName, Input = input, Actions = td.Actions }); } } }
public void Values_Hash_Core_MatchedUserAgents(PerformanceProfiles profile) { TestInitialize(profile); ValueTests.MatchedUserAgents(Wrapper); }
public void Values_Hash_Core_DeviceId(PerformanceProfiles profile) { TestInitialize(profile); ValueTests.DeviceId(Wrapper); }
public void Values_Hash_Core_TypedGetters(PerformanceProfiles profile) { TestInitialize(profile); ValueTests.TypedGetters(Wrapper); }
public void Values_Hash_Core_AvailableProperties(PerformanceProfiles profile) { TestInitialize(profile); ValueTests.AvailableProperties(Wrapper); }