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