Beispiel #1
0
        public static void TestRelated()
        {
            Bridge603B b = 12345;

            Assert.AreEqual(12345, b.intValue, "Bridge603B TestRelated Int");

            Bridge603B c = (string)null;

            Assert.AreEqual("[Null]", c.value, "Bridge603B TestRelated String Null");

            c = "Test";
            Assert.AreEqual("Test", c.value, "Bridge603B TestRelated String");

            Bridge603B d = (Bridge603Class)null;

            Assert.AreEqual("[Null]", d.value, "Bridge603B TestRelated Bridge603Class Null");

            d = new Bridge603Class()
            {
                Data = "Test 603B"
            };
            Assert.AreEqual("Test 603B", d.value, "Bridge603B TestRelated Bridge603Class");
        }
Beispiel #2
0
 public Bridge603B(Bridge603Class value)
 {
     this.value    = value.Data.ToString();
     this.intValue = 0;
 }