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));
        }
Ejemplo n.º 2
0
 public static LogEntry FromPackageLog(object target, IPackageLog log)
 {
     return new LogEntry(){
         Description = target.ToString(),
         Success = log.Success,
         TraceText = log.FullTraceText().Trim(),
         TimeInMilliseconds = log.TimeInMilliseconds
     };
 }
Ejemplo n.º 3
0
 public static LogEntry FromPackageLog(object target, IPackageLog log)
 {
     return(new LogEntry()
     {
         Description = target.ToString(),
         Success = log.Success,
         TraceText = log.FullTraceText().Trim(),
         TimeInMilliseconds = log.TimeInMilliseconds
     });
 }