Nfield.Services.NfieldSurveysServiceTests.TestSamplingPointUpdateAsync_SamplingPointArgumentIsNull_ThrowsArgumentNullException C# (CSharp) Method

TestSamplingPointUpdateAsync_SamplingPointArgumentIsNull_ThrowsArgumentNullException() private method

        public void TestSamplingPointUpdateAsync_SamplingPointArgumentIsNull_ThrowsArgumentNullException()
        {
            var target = new NfieldSurveysService();
            Assert.Throws<ArgumentNullException>(
                () =>
                {
                    try
                    {
                        target.SamplingPointUpdateAsync("", null).Wait();
                    }
                    catch (AggregateException ex)
                    {
                        throw ex.InnerException;
                    }
                }
                );
        }
NfieldSurveysServiceTests