public EmbeddedSpecData_smoke_tester()
        {
            var settings = new DocSettings
            {
                Root = TestingContext.FindProjectFolder()
            };

            theEmbeddedData = new EmbeddedSpecData(settings);
        }
Ejemplo n.º 2
0
        public void try_it_out_on_this()
        {
            // I wrote a comment here

            using (var container = Container.For <SampleRegistry>())
            {
                // In the real app, we're using the DocProject as the SampleCache now,
                // so it's not in the SampleRegistry
                container.Inject <ISampleCache>(new SampleCache());

                var builder = container.GetInstance <ISampleBuilder>();
                var path    = TestingContext.FindProjectFolder();

                var tasks = builder.ScanFolder(path);
                tasks.Wait();

                var cache = container.GetInstance <ISampleCache>();

                var sample = cache.Find("fake-sample");
                sample.Language.ShouldBe("csharp");
                sample.Text.ShouldContain("var x = 2;");
            }
        }