Ejemplo n.º 1
0
        public void ShouldAssignValueToDouble()
        {
            SinTDType d         = SinTDInstance.GetSinTDType("double");
            double    dInstance = (double)d.AssignValuesFromObject(1.0);

            Assert.AreEqual(1.0, dInstance);
        }
Ejemplo n.º 2
0
        public void ShouldAssignValueToUInt64()
        {
            SinTDType u64         = SinTDInstance.GetSinTDType("u64");
            ulong     u64Instance = (ulong)u64.AssignValuesFromObject((ulong)1);

            Assert.AreEqual((ulong)1, u64Instance);
        }
Ejemplo n.º 3
0
        public void ShouldAssignValueToFloat()
        {
            SinTDType f         = SinTDInstance.GetSinTDType("float");
            float     fInstance = (float)f.AssignValuesFromObject(1.0f);

            Assert.AreEqual(1.0f, fInstance);
        }
Ejemplo n.º 4
0
        public void ShouldAssignValueToInt64()
        {
            SinTDType i64           = SinTDInstance.GetSinTDType("i64");
            long      int64Instance = (long)i64.AssignValuesFromObject((long)1);

            Assert.AreEqual((long)1, int64Instance);
        }
Ejemplo n.º 5
0
        public void ShouldAssignValueToUInt32()
        {
            SinTDType u32          = SinTDInstance.GetSinTDType("u32");
            uint      uintInstance = (uint)u32.AssignValuesFromObject((uint)1);

            Assert.AreEqual(1, uintInstance);
        }
Ejemplo n.º 6
0
        public void ShouldAssignValueToInt32()
        {
            SinTDType i32         = SinTDInstance.GetSinTDType("i32");
            int       intInstance = (int)i32.AssignValuesFromObject(1);

            Assert.AreEqual(1, intInstance);
        }
Ejemplo n.º 7
0
        public void ShouldAssignValueToUInt16()
        {
            SinTDType u16            = SinTDInstance.GetSinTDType("u16");
            ushort    ushortInstance = (ushort)u16.AssignValuesFromObject((ushort)1);

            Assert.AreEqual(1, ushortInstance);
        }
Ejemplo n.º 8
0
        public void ShouldAssignValueToInt16()
        {
            SinTDType i16           = SinTDInstance.GetSinTDType("i16");
            short     shortInstance = (short)i16.AssignValuesFromObject((short)1);

            Assert.AreEqual((short)1, shortInstance);
        }
Ejemplo n.º 9
0
        public void ShouldAssignValueToAny()
        {
            SinTDType any      = SinTDInstance.GetSinTDType("any");
            var       anyValue = 1;

            var stringInstance = any.AssignValuesFromObject(anyValue);

            Assert.AreEqual(anyValue, stringInstance);
        }