Пример #1
0
		public void Constructor0 ()
		{
			MockComponentResourceManager crm = new MockComponentResourceManager ();
			Assert.IsNull (crm.BaseName, "#1");
			Assert.IsNull (crm.BaseNameField, "#2");
			Assert.IsFalse (crm.IgnoreCase, "#3");
			Assert.IsNull (crm.MainAssembly, "#4");
			Assert.IsNull (crm.ResourceSets, "#5");
			Assert.IsNotNull (crm.ResourceSetType, "#6");
			Assert.IsTrue (typeof (ResourceSet).IsAssignableFrom (crm.ResourceSetType), "#7");
			//Assert.IsFalse (typeof (ResourceSet) == crm.ResourceSetType, "#7");
		}
Пример #2
0
        public void Constructor0()
        {
            MockComponentResourceManager crm = new MockComponentResourceManager();

            Assert.IsNull(crm.BaseName, "#1");
            Assert.IsNull(crm.BaseNameField, "#2");
            Assert.IsFalse(crm.IgnoreCase, "#3");
            Assert.IsNull(crm.MainAssembly, "#4");
            Assert.IsNull(crm.ResourceSets, "#5");
            Assert.IsNotNull(crm.ResourceSetType, "#6");
            Assert.IsTrue(typeof(ResourceSet).IsAssignableFrom(crm.ResourceSetType), "#7");
            //Assert.IsFalse (typeof (ResourceSet) == crm.ResourceSetType, "#7");
        }
Пример #3
0
		public void Constructor1 ()
		{
			MockComponentResourceManager crm = new MockComponentResourceManager (
				typeof (Component));
			Assert.IsNotNull (crm.BaseName, "#1");
			Assert.AreEqual ("Component", crm.BaseName, "#2");
			Assert.IsNotNull (crm.BaseNameField, "#3");
			Assert.AreEqual ("Component", crm.BaseNameField, "#4");
			Assert.IsFalse (crm.IgnoreCase, "#5");
			Assert.IsNotNull (crm.MainAssembly, "#6");
			Assert.AreEqual (typeof (Component).Assembly, crm.MainAssembly, "#7");
			Assert.IsNotNull (crm.ResourceSets, "#8");
			Assert.AreEqual (0, crm.ResourceSets.Count, "#9");
			Assert.IsNotNull (crm.ResourceSetType, "#10");
			Assert.IsTrue (typeof (ResourceSet).IsAssignableFrom (crm.ResourceSetType), "#11");
			//Assert.IsFalse (typeof (ResourceSet) == crm.ResourceSetType, "#12");
		}
Пример #4
0
        public void Constructor1()
        {
            MockComponentResourceManager crm = new MockComponentResourceManager(
                typeof(Component));

            Assert.IsNotNull(crm.BaseName, "#1");
            Assert.AreEqual("Component", crm.BaseName, "#2");
            Assert.IsNotNull(crm.BaseNameField, "#3");
            Assert.AreEqual("Component", crm.BaseNameField, "#4");
            Assert.IsFalse(crm.IgnoreCase, "#5");
            Assert.IsNotNull(crm.MainAssembly, "#6");
            Assert.AreEqual(typeof(Component).Assembly, crm.MainAssembly, "#7");
            Assert.IsNotNull(crm.ResourceSets, "#8");
            Assert.AreEqual(0, crm.ResourceSets.Count, "#9");
            Assert.IsNotNull(crm.ResourceSetType, "#10");
            Assert.IsTrue(typeof(ResourceSet).IsAssignableFrom(crm.ResourceSetType), "#11");
            //Assert.IsFalse (typeof (ResourceSet) == crm.ResourceSetType, "#12");
        }