public void Fake_with_arguments_for_constructor_should_be_properly_guarded()
 {
     NullGuardedConstraint.Assert(() =>
                                  this.fakeObjectBuilder.GenerateFake <IFoo>(x => x.WithArgumentsForConstructor(new object[] { "foo", 1 })));
 }
Exemple #2
0
 public void Assert_should_be_null_guarded()
 {
     NullGuardedConstraint.Assert(() =>
                                  ES.FullExtensionSyntax.Assert(A.Fake <IFoo>()));
 }
Exemple #3
0
 public void Create_should_be_null_guarded()
 {
     // Assert
     NullGuardedConstraint.Assert(() =>
                                  ArgumentValidator <int> .Create(this.validations, x => true, "foo"));
 }
 public void Generate_fake_should_be_null_guarded()
 {
     NullGuardedConstraint.Assert(() => this.fakeObjectBuilder.GenerateFake <IFoo>(x => x.Wrapping(A.Fake <IFoo>())));
 }
Exemple #5
0
 public void Single_parameter_constructor_should_be_null_guarded()
 {
     NullGuardedConstraint.Assert(() => new FakeObject(typeof(IFoo)));
 }
Exemple #6
0
 public void Two_parameters_constructor_should_be_null_guarded()
 {
     NullGuardedConstraint.Assert(() => new FakeObject(typeof(string), new object[] { }));
 }
 public void Constructor_should_be_null_guarded()
 {
     NullGuardedConstraint.Assert(() =>
                                  new TestableProxyResult(typeof(string)));
 }
Exemple #8
0
 public void Constructor_should_be_null_guarded()
 {
     NullGuardedConstraint.Assert(() =>
                                  new ExpressionCallRule(this.callMatcher));
 }
 public void To_should_be_properly_guarded()
 {
     NullGuardedConstraint.Assert(() =>
                                  ThisCall.To(A.Fake <IFoo>()));
 }
Exemple #10
0
 public void CallsTo_for_void_methods_should_be_null_guarded()
 {
     NullGuardedConstraint.Assert(() =>
                                  FullExtensionSyntax.CallsTo(A.Fake <IFoo>(), x => x.Bar()));
 }
Exemple #11
0
 public void CallsTo_for_return_value_methods_should_be_null_guarded()
 {
     NullGuardedConstraint.Assert(() =>
                                  FullExtensionSyntax.CallsTo("string", x => x.Length));
 }
 public void CreateFake_should_be_null_guarded()
 {
     // Arrange, Act, Assert
     NullGuardedConstraint.Assert(() =>
                                  this.creator.CreateFake <IFoo>(x => x.Wrapping(A.Fake <IFoo>())));
 }
Exemple #13
0
 public void Constructor_should_be_null_guarded()
 {
     NullGuardedConstraint.Assert(() =>
                                  new FakeAssertions <IFoo>(this.fake, this.callMatcherFactory, x => this.fakeAsserter));
 }