Пример #1
0
        public static void TestRelated(Assert assert)
        {
            assert.Expect(5);

            Bridge603B b = 12345;

            assert.Equal(b.intValue, 12345, "Bridge603B TestRelated Int");

            Bridge603B c = (string)null;

            assert.Equal(c.value, "[Null]", "Bridge603B TestRelated String Null");

            c = "Test";
            assert.Equal(c.value, "Test", "Bridge603B TestRelated String");

            Bridge603B d = (Bridge603Class)null;

            assert.Equal(d.value, "[Null]", "Bridge603B TestRelated Bridge603Class Null");

            d = new Bridge603Class()
            {
                Data = "Test 603B"
            };
            assert.Equal(d.value, "Test 603B", "Bridge603B TestRelated Bridge603Class");
        }
Пример #2
0
        public static void TestRelated(Assert assert)
        {
            assert.Expect(5);

            Bridge603B b = 12345;
            assert.Equal(b.intValue, 12345, "Bridge603B TestRelated Int");

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

            c = "Test";
            assert.Equal(c.value, "Test", "Bridge603B TestRelated String");

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

            d = new Bridge603Class() { Data = "Test 603B" };
            assert.Equal(d.value, "Test 603B", "Bridge603B TestRelated Bridge603Class");
        }
Пример #3
0
 public Bridge603B(Bridge603Class value)
 {
     this.value = value.Data.ToString();
     this.intValue = 0;
 }
Пример #4
0
 public Bridge603B(Bridge603Class value)
 {
     this.value    = value.Data.ToString();
     this.intValue = 0;
 }