public void GetBatchedParameter()
        {
            MyAdapter da = new MyAdapter();

            NotSupportedException ex = Assert.Throws <NotSupportedException>(() => da.GetBatchedParameter(1, 1));

            Assert.Null(ex.InnerException);
            Assert.NotNull(ex.Message);
        }
Beispiel #2
0
        public void GetBatchedParameter()
        {
            MyAdapter da = new MyAdapter();

            try {
                da.GetBatchedParameter(1, 1);
                Assert.Fail("#1");
            } catch (NotSupportedException ex) {
                Assert.AreEqual(typeof(NotSupportedException), ex.GetType(), "#2");
                Assert.IsNull(ex.InnerException, "#3");
                Assert.IsNotNull(ex.Message, "#4");
            }
        }
Beispiel #3
0
        public void GetBatchedParameter()
        {
            MyAdapter da = new MyAdapter();

            try
            {
                da.GetBatchedParameter(1, 1);
                Assert.False(true);
            }
            catch (NotSupportedException ex)
            {
                Assert.Equal(typeof(NotSupportedException), ex.GetType());
                Assert.Null(ex.InnerException);
                Assert.NotNull(ex.Message);
            }
        }
Beispiel #4
0
		public void GetBatchedParameter ()
		{
			MyAdapter da = new MyAdapter ();
			try {
				da.GetBatchedParameter (1, 1);
				Assert.Fail ("#1");
			} catch (NotSupportedException ex) {
				Assert.AreEqual (typeof (NotSupportedException), ex.GetType (), "#2");
				Assert.IsNull (ex.InnerException, "#3");
				Assert.IsNotNull (ex.Message, "#4");
			}
		}
Beispiel #5
0
 public void GetBatchedParameter()
 {
     MyAdapter da = new MyAdapter();
     try
     {
         da.GetBatchedParameter(1, 1);
         Assert.False(true);
     }
     catch (NotSupportedException ex)
     {
         Assert.Equal(typeof(NotSupportedException), ex.GetType());
         Assert.Null(ex.InnerException);
         Assert.NotNull(ex.Message);
     }
 }