Esempio n. 1
0
        public void Constructor_Throws_ArgumentNullException_When_Options_Is_Null()
        {
            // Arrange
            EdGateClientOptions options = null;

            // Act & Assert
            Assert.Throws <ArgumentNullException>(() => _sut = new EdGateClient(options));
        }
Esempio n. 2
0
        public void Constructor_Throws_Exception_When_EdGatePublicKey_Is_Null()
        {
            // Arrange
            EdGateClientOptions options = new EdGateClientOptions
            {
                EdGatePrivateKey = "x",
                EdGatePublicKey  = null
            };

            // Act & Assert
            Assert.Throws <Exception>(() => _sut = new EdGateClient(options));
        }