public void verify_test_extensions_everything_happy() { var theFoo = new Foo(); theServices.Stub(x => x.GetInstance <IFoo>()) .Return(theFoo); theServices.VerifyRegistration <IFoo>(theLog) .ShouldBeTheSameAs(theFoo); theLog.Success.ShouldBeTrue(); theLog.FullTraceText().ShouldContain("Using {0} for {1}".ToFormat(typeof(Foo).FullName, typeof(IFoo).FullName)); }
public static LogEntry FromPackageLog(object target, IPackageLog log) { return new LogEntry(){ Description = target.ToString(), Success = log.Success, TraceText = log.FullTraceText().Trim(), TimeInMilliseconds = log.TimeInMilliseconds }; }
public static LogEntry FromPackageLog(object target, IPackageLog log) { return(new LogEntry() { Description = target.ToString(), Success = log.Success, TraceText = log.FullTraceText().Trim(), TimeInMilliseconds = log.TimeInMilliseconds }); }