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); }
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); }