Esempio n. 1
0
        public void DSMAPI_With_NUL_Values_Throws_ArgumentOutOfRangeException()
        {
            Assert.That(() => mockClient.CreateSource(StringMocks.NonEmptyInput, null, SodaDataFormat.CSV), Throws.TypeOf <ArgumentException>());

            Assert.That(() => mockClient.GetSource(null), Throws.TypeOf <ArgumentException>());
            Assert.That(() => mockClient.CreateInputSchema(null), Throws.TypeOf <ArgumentException>());

            Assert.That(() => mockClient.ExportErrorRows(StringMocks.NonEmptyInput, null), Throws.TypeOf <ArgumentException>());
            Assert.That(() => mockClient.Apply(null, null), Throws.TypeOf <InvalidOperationException>());
        }