コード例 #1
0
        public void GetBatchedRecordsAffected()
        {
            MyAdapter da = new MyAdapter();

            Assert.True(da.GetBatchedRecordsAffected(int.MinValue, out int recordsAffected, out Exception error));
            Assert.Equal(1, recordsAffected);
            Assert.Null(error);
        }
コード例 #2
0
        public void GetBatchedRecordsAffected()
        {
            MyAdapter da = new MyAdapter();
            int       recordsAffected = 0;
            Exception error           = null;

            Assert.IsTrue(da.GetBatchedRecordsAffected(int.MinValue,
                                                       out recordsAffected, out error), "#1");
            Assert.AreEqual(1, recordsAffected, "#2");
            Assert.IsNull(error, "#3");
        }
コード例 #3
0
ファイル: DbDataAdapterTest.cs プロジェクト: EricHripko/mono
		public void GetBatchedRecordsAffected ()
		{
			MyAdapter da = new MyAdapter ();
			int recordsAffected = 0;
			Exception error = null;

			Assert.IsTrue (da. GetBatchedRecordsAffected (int.MinValue,
				out recordsAffected, out error), "#1");
			Assert.AreEqual (1, recordsAffected, "#2");
			Assert.IsNull (error, "#3");
		}
コード例 #4
0
ファイル: DbDataAdapterTest.cs プロジェクト: dotnet/corefx
        public void GetBatchedRecordsAffected()
        {
            MyAdapter da = new MyAdapter();
            int recordsAffected = 0;
            Exception error = null;

            Assert.True(da.GetBatchedRecordsAffected(int.MinValue, out recordsAffected, out error));
            Assert.Equal(1, recordsAffected);
            Assert.Null(error);
        }