Example #1
0
        public void GetFastCasterSucceeds()
        {
            var fastCaster = Duck.GetFastCaster <IDuckSample>();

            Assert.That(fastCaster(new object()), Is.Null);
            Assert.That(fastCaster(new DuckSample()), Is.Not.Null);
        }