public void TableProvider_ToString()
        {
            var dmp = new MyDataModelProvider();
            var tp  = new MyTableProvider(dmp);

            tp.SetName("MyName");
            Assert.AreEqual(tp.Name, tp.ToString(), "#A1");
        }
        public void TableProvider_Defaults()
        {
            var dmp = new MyDataModelProvider();
            var tp  = new MyTableProvider(dmp);

            Assert.IsTrue(tp.DataModel != null, "#A1");
            Assert.AreEqual(typeof(MyDataModelProvider), tp.DataModel.GetType(), "#A2");
            Assert.AreEqual(null, tp.EntityType, "#A3");
            Assert.AreEqual(null, tp.Name, "#A4");
            Assert.AreEqual(tp.GetType().ToString(), tp.ToString(), "#A5");
        }
Beispiel #3
0
		public void TableProvider_ToString()
		{
			var dmp = new MyDataModelProvider();
			var tp = new MyTableProvider(dmp);

			tp.SetName ("MyName");
			Assert.AreEqual(tp.Name, tp.ToString(), "#A1");
		}
Beispiel #4
0
		public void TableProvider_Defaults()
		{
			var dmp = new MyDataModelProvider();
			var tp = new MyTableProvider(dmp);

			Assert.IsTrue(tp.DataModel != null, "#A1");
			Assert.AreEqual(typeof (MyDataModelProvider), tp.DataModel.GetType (), "#A2");
			Assert.AreEqual(null, tp.EntityType, "#A3");
			Assert.AreEqual(null, tp.Name, "#A4");
			Assert.AreEqual(tp.GetType ().ToString (), tp.ToString(), "#A5");
		}