Exemplo n.º 1
0
 public void NonTypedConstructor_Initializes_Always()
 {
   TypeTableEntry entry = new TypeTableEntry("System.String");
   Assert.IsNull(entry.CompiledType);
   Assert.AreEqual("System.String", entry.FullName);
   Assert.AreEqual("String", entry.Name);
   Assert.IsFalse(entry.HasCompiledType);
 }
Exemplo n.º 2
0
 public void Constructor_Initializes_Always()
 {
   TypeTableEntry entry = new TypeTableEntry("System.String", typeof(string));
   Assert.AreEqual(typeof(string), entry.CompiledType);
   Assert.AreEqual("System.String", entry.FullName);
   Assert.AreEqual("String", entry.Name);
   Assert.IsTrue(entry.HasCompiledType);
 }
Exemplo n.º 3
0
        public void NonTypedConstructor_Initializes_Always()
        {
            var entry = new TypeTableEntry("System.String");

            Assert.IsNull(entry.CompiledType);
            Assert.AreEqual("System.String", entry.FullName);
            Assert.AreEqual("String", entry.Name);
            Assert.IsFalse(entry.HasCompiledType);
        }
Exemplo n.º 4
0
        public void Constructor_Initializes_Always()
        {
            var entry = new TypeTableEntry("System.String", typeof(string));

            Assert.AreEqual(typeof(string), entry.CompiledType);
            Assert.AreEqual("System.String", entry.FullName);
            Assert.AreEqual("String", entry.Name);
            Assert.IsTrue(entry.HasCompiledType);
        }
Exemplo n.º 5
0
 public void AddTableEntry(TypeTableEntry entry)
 {
     _typeEntries.Add(entry);
 }
Exemplo n.º 6
0
 public void AddTableEntry(TypeTableEntry entry)
 {
   _typeEntries.Add(entry);
 }