コード例 #1
0
        private void VerifyIsStub(ICollectionOfServices objectToCheck)
        {
            IDisposable whatever = mocks.StrictMock <IDisposable>();

            objectToCheck.SomethingToDispose = whatever;

            Assert.AreSame(objectToCheck.SomethingToDispose, whatever, "stub has properties that behave like properties");
        }
コード例 #2
0
 public ComponentBeingConfigured(IReallyCoolService reallyCoolService, ICollectionOfServices services)
 {
     ReallyCoolService = reallyCoolService;
     Services = services;
 }
 internal ComponentBeingConfiguredWithInternalCtor(IReallyCoolService reallyCoolService, ICollectionOfServices services)
 {
     ReallyCoolService = reallyCoolService;
     Services = services;
 }
 private ComponentBeingConfiguredWithPrivateCtor(IReallyCoolService reallyCoolService, ICollectionOfServices services)
 {
     ReallyCoolService = reallyCoolService;
     Services = services;
 }
コード例 #5
0
 internal InternalComponentBeingConfigured(IReallyCoolService reallyCoolService, ICollectionOfServices services)
 {
     ReallyCoolService = reallyCoolService;
     Services          = services;
 }
コード例 #6
0
 private ComponentBeingConfiguredWithPrivateCtor(IReallyCoolService reallyCoolService, ICollectionOfServices services)
 {
     ReallyCoolService = reallyCoolService;
     Services          = services;
 }