public void Constructor_should_copy_test_data_flags()
        {
            var method = GetType().GetMethod("Constructor_should_copy_test_data_flags");
            var data   = new FTestData().WithReason("Reasons");
            var c      = new ReflectedTheoryCase(method, new TestDataInfo(data, null, 0));

            Assert.Equal("Reasons", c.Reason);
            Assert.True(c.IsFocused);
        }
Пример #2
0
        public void TestData_use_cases()
        {
            // Simply set up a value
            var simple = new object[] {
                new TestData <string>("hello"),
                TestData <string> .Create("hello"),
                TestData.Create <string>("hello"),
            };

            // Prepend X or F to change pending/focus
            var pending = new object[] {
                new XTestData <string>("hello"),
                XTestData <string> .Create("hello"),
                XTestData.Create <string>("hello"),
                TestData.XCreate <string>("hello")
            };

            var focus = new object[] {
                new FTestData <string>("hello"),
                FTestData <string> .Create("hello"),
                FTestData.Create <string>("hello"),
                TestData.FCreate <string>("hello")
            };
        }