Example #1
0
        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
                    });
                }
            }
        }
Example #2
0
 public void Values_Hash_Core_MatchedUserAgents(PerformanceProfiles profile)
 {
     TestInitialize(profile);
     ValueTests.MatchedUserAgents(Wrapper);
 }
Example #3
0
 public void Values_Hash_Core_DeviceId(PerformanceProfiles profile)
 {
     TestInitialize(profile);
     ValueTests.DeviceId(Wrapper);
 }
Example #4
0
 public void Values_Hash_Core_TypedGetters(PerformanceProfiles profile)
 {
     TestInitialize(profile);
     ValueTests.TypedGetters(Wrapper);
 }
Example #5
0
 public void Values_Hash_Core_AvailableProperties(PerformanceProfiles profile)
 {
     TestInitialize(profile);
     ValueTests.AvailableProperties(Wrapper);
 }