コード例 #1
0
 public override void ArgumentNullConstructorTest()
 {
     AssertArguments.ThrowsWhenNullConstructor(
         this.Client.GetType(),
         new[] { typeof(IConnection), typeof(IGw2Client), typeof(int) },
         new object[] { new Connection(), new Gw2Client(), 1 },
         new[] { true, true, false });
 }
コード例 #2
0
 public virtual void ArgumentNullConstructorTest()
 {
     AssertArguments.ThrowsWhenNullConstructor(
         typeof(DefaultEndpointClientImplementation <TestBaseObject>),
         new[] { typeof(IEndpointClient), typeof(IConnection), typeof(IGw2Client) },
         new object[] { Substitute.For <IEndpointClient>(), new Connection(), new Gw2Client() },
         new[] { true, true, true });
 }
コード例 #3
0
 public override void ArgumentNullConstructorTest()
 {
     AssertArguments.ThrowsWhenNullConstructor(
         this.Client.GetType(),
         new[] { typeof(IConnection), typeof(IGw2Client), typeof(Guid) },
         new object[] { new Connection(), new Gw2Client(), Guid.Parse("11111111-2222-3333-4444-abcdeffedcba") },
         new[] { true, true, false });
 }
コード例 #4
0
 public virtual void ArgumentNullConstructorTest()
 {
     AssertArguments.ThrowsWhenNullConstructor(
         this.client.GetType(),
         new[] { typeof(IConnection), typeof(IGw2Client) },
         new object[] { new Connection(), new Gw2Client() },
         new[] { true, true });
 }
コード例 #5
0
 public void ConstructorNullFileNameTest()
 {
     AssertArguments.ThrowsWhenNullConstructor(typeof(ArchiveCacheMethod), new[] { typeof(string) }, new[] { "test" }, new[] { true });
 }