public when_stubbing_a_call_to_a_method_that_matches_the_naming_prefix_for_an_event_but_is_not_an_event()
 {
     item = new object();
     dependency = MockRepository.GenerateStub<InterfaceWithAMethodThatHasANameThatShouldNotBeRecognizedAsAnEvent>();
     system_under_test = new GenericClass(dependency);
     system_under_test.do_something(item);
 }
Exemple #2
0
 public when_stubbing_a_call_to_a_method_that_matches_the_naming_prefix_for_an_event_but_is_not_an_event()
 {
     item              = new object();
     dependency        = MockRepository.Mock <InterfaceWithAMethodThatHasANameThatShouldNotBeRecognizedAsAnEvent>();
     system_under_test = new GenericClass(dependency);
     system_under_test.do_something(item);
 }
 public void setup()
 {
     item = new object();
     dependency = MockRepository.GenerateStub<InterfaceWithAMethodThatHasANameThatShouldNotBeRecognizedAsAnEvent>();
     system_under_test = new GenericClass(dependency);
     system_under_test.do_something(item);
 }
 public GenericClass(InterfaceWithAMethodThatHasANameThatShouldNotBeRecognizedAsAnEvent dependency)
 {
     this.dependency = dependency;
 }
 public GenericClass(InterfaceWithAMethodThatHasANameThatShouldNotBeRecognizedAsAnEvent dependency)
 {
     this.dependency = dependency;
 }