示例#1
0
        public void write_one_level_context()
        {
            const string testSuiteName = "one level test suite";
            var          context       = new Specification(testSuiteName);

            _specificationWritter.Write(context);

            writter.Verify(x => x.WriteSuite(testSuiteName, 0));
        }
示例#2
0
        public static void Main(string[] args)
        {
            var path = args[0];

            var typeFinder           = new TypeFinder();
            var specificationFinder  = new SpecificationFinder(new ClassFinder(new MethodFinder()));
            var specificationWritter = new SpecificationWritter(new ConsoleWritter());

            var types         = typeFinder.find(path);
            var specification = new Specification(path);

            foreach (var type in types)
            {
                var currentSpecification = specificationFinder.Find(type);
                specification.AddContext(currentSpecification);
            }
            specificationWritter.Write(specification);
        }