Пример #1
0
        public void BindInfoTest1()
        {
            var types = new [] {typeof(int)};
            var bindingScope = new BindingScope("123");
            var type = typeof(string);

            var bi = new BindInfo(bindingScope, types, type);

            Assert.AreEqual(bindingScope, bi.Scope);
            Assert.AreEqual(types, bi.From);
            Assert.AreEqual(type, bi.To);
            Assert.IsNull(bi.Name);
        }
Пример #2
0
        public void BindInfoTest2()
        {
            var types = new[] { typeof(int) };
            var bindingScope = new BindingScope("123");
            var type = typeof(string);
            const string name = "123222";

            var bi = new BindInfo(bindingScope, types, type, name);

            Assert.AreEqual(bindingScope, bi.Scope);
            Assert.AreEqual(types, bi.From);
            Assert.AreEqual(type, bi.To);
            Assert.AreEqual(name, bi.Name);
        }