public void Defaults() { DefaultResourceSet rs = new DefaultResourceSet(); Assert.IsNotNull(rs.GetTable(), "Table"); Assert.IsNull(rs.GetReader(), "Reader"); Assert.AreEqual(typeof(ResourceReader), rs.GetDefaultReader(), "DefaultReaderType"); Assert.AreEqual(typeof(ResourceWriter), rs.GetDefaultWriter(), "DefaultWriterType"); rs.Dispose(); Assert.IsNull(rs.GetTable(), "Disposed/Table"); Assert.IsNull(rs.GetReader(), "Disposed/Reader"); Assert.AreEqual(typeof(ResourceReader), rs.GetDefaultReader(), "Disposed/DefaultReaderType"); Assert.AreEqual(typeof(ResourceWriter), rs.GetDefaultWriter(), "Disposed/DefaultWriterType"); }
public void Defaults () { DefaultResourceSet rs = new DefaultResourceSet (); Assert.IsNotNull (rs.GetTable (), "Table"); Assert.IsNull (rs.GetReader (), "Reader"); Assert.AreEqual (typeof (ResourceReader), rs.GetDefaultReader (), "DefaultReaderType"); Assert.AreEqual (typeof (ResourceWriter), rs.GetDefaultWriter (), "DefaultWriterType"); rs.Dispose (); Assert.IsNull (rs.GetTable (), "Disposed/Table"); Assert.IsNull (rs.GetReader (), "Disposed/Reader"); Assert.AreEqual (typeof (ResourceReader), rs.GetDefaultReader (), "Disposed/DefaultReaderType"); Assert.AreEqual (typeof (ResourceWriter), rs.GetDefaultWriter (), "Disposed/DefaultWriterType"); }