Пример #1
0
        public void CreatesContext()
        {
            var target = new DesignTimeContextFactoryHelper(Assembly.GetExecutingAssembly());
            var actual = target.CreateContext(new string[0]);

            Assert.IsType <TestContext>(actual);
        }
Пример #2
0
        public void GetsFactoryTypeFromThisAssembly()
        {
            var target = new DesignTimeContextFactoryHelper(Assembly.GetExecutingAssembly());
            var actual = target.GetFactoryType();

            Assert.Equal(typeof(TestFactoryType), actual);
        }