Ejemplo n.º 1
0
        public void Compile_Async()
        {
            Assert.IsFalse(SutEngine.IsTypeConfigured(typeof(SimpleModel)));

            SutEngine.Configure <SimpleModel>()
            .Compile.Async();

            Assert.IsTrue(SutEngine.IsTypeConfigured(typeof(SimpleModel)));
            Assert.IsFalse(SutEngine.IsTypeCompiled(typeof(SimpleModel)));

            var comparer = SutEngine.Get <SimpleModel>();

            Assert.IsTrue(SutEngine.IsTypeConfigured(typeof(SimpleModel)));
            Assert.IsTrue(SutEngine.IsTypeCompiled(typeof(SimpleModel)));
        }