Ejemplo n.º 1
0
        public static TestFixtureData Parse(string text)
        {
            var items = new FixtureParser(null).Parse(text);

            if (items == null)
            {
                throw SpecFailure.NotParsable("text", typeof(TestFixtureData));
            }
            return(items.Single());
        }
Ejemplo n.º 2
0
        public static TestFixture Parse(string text)
        {
            var items = new FixtureParser(null).Parse(text);

            if (items == null)
            {
                throw SpecFailure.NotParsable("text", typeof(TestFixture));
            }
            var result = new TestFixture();

            result.Items.AddAll(items);
            return(result);
        }