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"); }
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); }
public void the_assembly_should_have_the_provenance() { diagnostics.LogFor(assembly).Provenance.ShouldEqual(theProvenance); }
public void the_log_for_the_package_should_show_the_provenance_from_the_loader() { diagnostics.LogFor(_bottle).Provenance.ShouldEqual("Loaded by " + loader.ToString()); }