public void ShouldAssignValueToDouble() { SinTDType d = SinTDInstance.GetSinTDType("double"); double dInstance = (double)d.AssignValuesFromObject(1.0); Assert.AreEqual(1.0, dInstance); }
public void ShouldAssignValueToUInt64() { SinTDType u64 = SinTDInstance.GetSinTDType("u64"); ulong u64Instance = (ulong)u64.AssignValuesFromObject((ulong)1); Assert.AreEqual((ulong)1, u64Instance); }
public void ShouldAssignValueToFloat() { SinTDType f = SinTDInstance.GetSinTDType("float"); float fInstance = (float)f.AssignValuesFromObject(1.0f); Assert.AreEqual(1.0f, fInstance); }
public void ShouldAssignValueToInt64() { SinTDType i64 = SinTDInstance.GetSinTDType("i64"); long int64Instance = (long)i64.AssignValuesFromObject((long)1); Assert.AreEqual((long)1, int64Instance); }
public void ShouldAssignValueToUInt32() { SinTDType u32 = SinTDInstance.GetSinTDType("u32"); uint uintInstance = (uint)u32.AssignValuesFromObject((uint)1); Assert.AreEqual(1, uintInstance); }
public void ShouldAssignValueToInt32() { SinTDType i32 = SinTDInstance.GetSinTDType("i32"); int intInstance = (int)i32.AssignValuesFromObject(1); Assert.AreEqual(1, intInstance); }
public void ShouldAssignValueToUInt16() { SinTDType u16 = SinTDInstance.GetSinTDType("u16"); ushort ushortInstance = (ushort)u16.AssignValuesFromObject((ushort)1); Assert.AreEqual(1, ushortInstance); }
public void ShouldAssignValueToInt16() { SinTDType i16 = SinTDInstance.GetSinTDType("i16"); short shortInstance = (short)i16.AssignValuesFromObject((short)1); Assert.AreEqual((short)1, shortInstance); }
public void ShouldAssignValueToAny() { SinTDType any = SinTDInstance.GetSinTDType("any"); var anyValue = 1; var stringInstance = any.AssignValuesFromObject(anyValue); Assert.AreEqual(anyValue, stringInstance); }