예제 #1
0
        public void Int64ToInt64()
        {
            var  typeHandler = new Int64TypeHandler();
            long expected    = 1L;
            var  actual      = typeHandler.GetValue(MockTypeHandlerDbDataReader.Of(expected), 1, typeof(long));

            Assert.Equal(expected, actual);
        }
예제 #2
0
        public void ByteToInt64()
        {
            var  typeHandler = new Int64ByteTypeHandler();
            byte expected    = 1;
            var  actual      = typeHandler.GetValue(MockTypeHandlerDbDataReader.Of(expected), 1, typeof(byte));

            Assert.Equal(expected, actual);
        }
        public static DataReaderWrapper Of(object value)
        {
            MockTypeHandlerDbDataReader dataReader = new MockTypeHandlerDbDataReader(value);

            return(new DataReaderWrapper(dataReader));
        }