Ejemplo n.º 1
0
        public void BinTypeConverter_WriteBack()
        {
            MyBinType    mb   = new MyBinType("contents");
            ResXDataNode node = new ResXDataNode("aname", mb);

            node.Comment = "acomment";
            ResXDataNode returnedNode = GetNodeFromResXReader(node);

            Assert.IsNotNull(returnedNode, "#A1");
            MyBinType returnedMB = (MyBinType)returnedNode.GetValue((AssemblyName [])null);

            Assert.AreEqual("contents", returnedMB.Value, "#A2");
            Assert.AreEqual("acomment", returnedNode.Comment, "#A3");
            ResXDataNode finalNode = GetNodeFromResXReader(returnedNode);

            Assert.IsNotNull(finalNode, "#A4");
            MyBinType finalMB = (MyBinType)finalNode.GetValue((AssemblyName [])null);

            Assert.AreEqual("contents", finalMB.Value, "#A5");
            Assert.AreEqual("acomment", finalNode.Comment, "#A6");
        }
Ejemplo n.º 2
0
		public void BinTypeConverter_WriteBack ()
		{
			MyBinType mb = new MyBinType ("contents");
			ResXDataNode node = new ResXDataNode ("aname", mb);
			node.Comment = "acomment";
			ResXDataNode returnedNode = GetNodeFromResXReader (node);
			Assert.IsNotNull (returnedNode, "#A1");
			MyBinType returnedMB = (MyBinType) returnedNode.GetValue ((AssemblyName []) null);
			Assert.AreEqual ("contents", returnedMB.Value, "#A2");
			Assert.AreEqual ("acomment", returnedNode.Comment, "#A3");
			ResXDataNode finalNode = GetNodeFromResXReader (returnedNode);
			Assert.IsNotNull (finalNode, "#A4");
			MyBinType finalMB = (MyBinType) finalNode.GetValue ((AssemblyName []) null);
			Assert.AreEqual ("contents", finalMB.Value, "#A5");
			Assert.AreEqual ("acomment", finalNode.Comment, "#A6");
		}