예제 #1
0
        public void SerializerSettings_IsCorrectlyInitialized(JSendClientSettings settings)
        {
            // Exercise system
            var client = new JSendClient(settings);

            // Verify outcome
            client.SerializerSettings.Should().BeSameAs(settings.SerializerSettings);
        }
예제 #2
0
        public void MessageInterceptor_IsCorrectlyInitialized(JSendClientSettings settings)
        {
            // Exercise system
            var client = new JSendClient(settings);

            // Verify outcome
            client.MessageInterceptor.Should().BeSameAs(settings.MessageInterceptor);
        }
예제 #3
0
 public void ConstructorThrowsWhenClientIsNull(JSendClientSettings settings)
 {
     // Exercise system and verify outcome
     Assert.Throws <ArgumentNullException>(() => new JSendClient(settings, null));
 }
예제 #4
0
 public void SerializerSettings_IsCorrectlyInitialized(JSendClientSettings settings)
 {
     // Exercise system
     var client = new JSendClient(settings);
     // Verify outcome
     client.SerializerSettings.Should().BeSameAs(settings.SerializerSettings);
 }
예제 #5
0
 public void MessageInterceptor_IsCorrectlyInitialized(JSendClientSettings settings)
 {
     // Exercise system
     var client = new JSendClient(settings);
     // Verify outcome
     client.MessageInterceptor.Should().BeSameAs(settings.MessageInterceptor);
 }
예제 #6
0
 public void ConstructorThrowsWhenClientIsNull(JSendClientSettings settings)
 {
     // Exercise system and verify outcome
     Assert.Throws<ArgumentNullException>(() => new JSendClient(settings, null));
 }