Example #1
0
        public void LifetimeTests_StateCheck()
        {
            var scoped = new ScopedLifetime();

            Assert.IsInstanceOfType(scoped.Create(), typeof(ScopedLifetime));

            var singleton = new SingletonLifetime();

            Assert.IsInstanceOfType(singleton.Create(), typeof(SingletonLifetime));
        }