public void implicit_op_from_timeStamp_to_byteArray() { ByteArrayTimestamp target = new ByteArrayTimestamp( VALUE ); Byte[] actual = target; AssertValueAreEqual( actual, target ); }
public void byteArrayTimeStamp_empty_toString() { String expected = ""; ByteArrayTimestamp target = new ByteArrayTimestamp( new Byte[ 0 ] ); String actual = target.ToString(); Assert.AreEqual<String>( expected, actual ); }
void AssertValueAreEqual( Byte[] expected, ByteArrayTimestamp baActual ) { Byte[] actual = baActual.Value; Assert.AreEqual<Int32>( expected.Length, actual.Length ); for( Int32 i = 0; i < expected.Length; i++ ) { Assert.AreEqual<Byte>( expected[ i ], actual[ i ] ); } }
public void byteArrayTimeStamp_toString() { String expected = "00:0C:37:FF"; ByteArrayTimestamp target = new ByteArrayTimestamp( new Byte[]{ 0, 12, 55, 255 } ); String actual = target.ToString(); Assert.AreEqual<String>( expected, actual ); }
public override Timestamp CreateMock() { ByteArrayTimestamp ts = new ByteArrayTimestamp( VALUE ); return ts; }
public void byteArrayTimeStamp_Equals_with_null() { ByteArrayTimestamp v1 = new ByteArrayTimestamp( new Byte[] { 0, 12, 55, 255 } ); ByteArrayTimestamp v2 = null; Boolean expected = false; Boolean actual = v1.Equals( v2 ); Assert.AreEqual( expected, actual ); }