コード例 #1
0
ファイル: N603.cs プロジェクト: wushian/Bridge
        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");
        }
コード例 #2
0
ファイル: N603.cs プロジェクト: TinkerWorX/Bridge
        public static void TestRelated()
        {
            Bridge603B b = 12345;
            Assert.AreEqual(b.intValue, 12345, "Bridge603B TestRelated Int");

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

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

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

            d = new Bridge603Class() { Data = "Test 603B" };
            Assert.AreEqual(d.value, "Test 603B", "Bridge603B TestRelated Bridge603Class");
        }
コード例 #3
0
ファイル: N603.cs プロジェクト: wushian/Bridge
 public Bridge603B(Bridge603Class value)
 {
     this.value    = value.Data.ToString();
     this.intValue = 0;
 }
コード例 #4
0
ファイル: N603.cs プロジェクト: TinkerWorX/Bridge
 public Bridge603B(Bridge603Class value)
 {
     this.value = value.Data.ToString();
     this.intValue = 0;
 }