Beispiel #1
0
        public void ReturnsCorrectType()
        {
            var dts = new TestDTS();

            Assert.IsInstanceOf <TemplateOne> (dts.SelectTemplate(1d, null));
            Assert.IsInstanceOf <TemplateTwo> (dts.SelectTemplate("test", null));
        }
Beispiel #2
0
        public void NestingThrowsException()
        {
            var dts = new TestDTS();

            Assert.Throws <NotSupportedException> (() => dts.SelectTemplate((byte)0, null));
        }
Beispiel #3
0
 public void Constructor()
 {
     var dts = new TestDTS();
 }
		public void NestingThrowsException ()
		{
			var dts = new TestDTS ();
			Assert.Throws<NotSupportedException> (() => dts.SelectTemplate ((byte)0, null));
		}
		public void ReturnsCorrectType ()
		{
			var dts = new TestDTS ();
			Assert.IsInstanceOf<TemplateOne> (dts.SelectTemplate (1d, null));
			Assert.IsInstanceOf<TemplateTwo> (dts.SelectTemplate ("test", null));
		}
		public void Constructor ()
		{
			var dts = new TestDTS ();
		}