public void ReturnsNull_should_be_null_guarded()
 {
     NullGuardedConstraint.Assert(() =>
                                  FakeExtensions.ReturnsNull(A.Fake <IReturnValueConfiguration <string> >()));
 }
 public void Once_should_throw_when_configuration_is_null()
 {
     Assert.Throws <ArgumentNullException>(() =>
                                           FakeExtensions.Once((IRepeatConfiguration)null));
 }
示例#3
0
 public void WriteCalls_should_throw_when_calls_is_null()
 {
     NullGuardedConstraint.Assert(() =>
                                  FakeExtensions.Write(Enumerable.Empty <IFakeObjectCall>(), A.Dummy <IOutputWriter>()));
 }