Пример #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));
 }