예제 #1
0
        public void InstanceBlockWorksWhenTypeRequested()
        {
            var blk = new InstanceBlock(typeof(string));

            blk.WithType();
            Check.That(blk.GetMessage()).IsEqualTo("an instance of type: [string]");
        }
예제 #2
0
        public void ShouldWorkForInstance()
        {
            var blk = new InstanceBlock(typeof(string));

            Assert.AreEqual("an instance of type: [string]", blk.GetMessage());
        }
예제 #3
0
        public void ShouldWorkForInstance()
        {
            var blk = new InstanceBlock(typeof(string));

            Assert.AreEqual("an instance of type: [string]", blk.GetMessage());
        }