コード例 #1
0
        public void t_GetGuidFromName_Null()
        {
            Guid expected = Guid.Empty;

            IDataReader reader = setupNullReader(typeof(Guid));

            Guid actual;

            actual = IDataReaderExtensions.GetGuidFromName(reader, columnName);
            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void t_GetGuidFromName()
        {
            Guid expected = new Guid("CE0D1C95-C0C6-4D1E-8D5A-ADB8D0A297AF");

            IDataReader reader = setupReader(expected);

            Guid actual;

            actual = IDataReaderExtensions.GetGuidFromName(reader, columnName);
            Assert.AreEqual(expected, actual);
        }