Example #1
0
        public void Parse_should_roundtrip_on_values(string name)
        {
            var expected = typeof(TestTagType).GetField(name).GetValue(null);

            Assert.Equal(
                expected,
                TestTagType.Parse(name)
                );
        }
Example #2
0
 public void IsAutomatic_applies_to_previously()
 {
     Assert.True(TestTagType.Parse("previously").Automatic);
 }
Example #3
0
 public static TestTagPredicate Exactly(TestTagType type, string value)
 {
     return(Exactly(new TestTag(type, value)));
 }