示例#1
0
        public void log_an_object_creates_a_log_file()
        {
            var loader = new StubPackageLoader("a", "b");

            diagnostics.LogObject(loader, "registered at XYZ");

            diagnostics.LogFor(loader).Provenance.ShouldEqual("registered at XYZ");
        }
示例#2
0
 public void each_activator_should_have_the_provenance()
 {
     diagnostics.LogFor(activator1).Provenance.ShouldEqual("Loaded by Bootstrapper:  " + bootstrapper);
     diagnostics.LogFor(activator2).Provenance.ShouldEqual("Loaded by Bootstrapper:  " + bootstrapper);
     diagnostics.LogFor(activator3).Provenance.ShouldEqual("Loaded by Bootstrapper:  " + bootstrapper);
 }
示例#3
0
 public void the_assembly_should_have_the_provenance()
 {
     diagnostics.LogFor(assembly).Provenance.ShouldEqual(theProvenance);
 }
示例#4
0
 public void the_log_for_the_package_should_show_the_provenance_from_the_loader()
 {
     diagnostics.LogFor(_bottle).Provenance.ShouldEqual("Loaded by " + loader.ToString());
 }