Пример #1
0
        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");
        }
Пример #2
0
		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");
		}