Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock.Framework.Tests/Data
In directory sc8-pr-cvs1:/tmp/cvs-serv3786/DotNetMock.Framework.Tests/Data
Modified Files:
MockDataReaderTests.cs
Log Message:
1) Fixed indexing problem with MockDataReader
2) Added Visual Studio Templates
3) Modified build file to include test and InstallTemplates
Index: MockDataReaderTests.cs
===================================================================
RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock.Framework.Tests/Data/MockDataReaderTests.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MockDataReaderTests.cs 11 Mar 2003 22:45:41 -0000 1.2
--- MockDataReaderTests.cs 25 Mar 2003 02:39:57 -0000 1.3
***************
*** 141,145 ****
for (int i = 0; i <= 1; i++)
{
! Assertion.AssertEquals("Items not equal.", "Row " + rowCount + ", Column " + i, _reader.GetValue(i + 1));
}
rowCount++;
--- 141,145 ----
for (int i = 0; i <= 1; i++)
{
! Assertion.AssertEquals("Items not equal.", "Row " + rowCount + ", Column " + i, _reader.GetValue(i));
}
rowCount++;
***************
*** 158,162 ****
for (int i = 0; i <= 1; i++)
{
! Assertion.AssertEquals("Items not equal.", "Row " + rowCount + ", Column " + i, _reader[i + 1]);
}
rowCount++;
--- 158,162 ----
for (int i = 0; i <= 1; i++)
{
! Assertion.AssertEquals("Items not equal.", "Row " + rowCount + ", Column " + i, _reader[i]);
}
rowCount++;
***************
*** 195,205 ****
while (_reader.Read())
{
! Assertion.AssertEquals(0, _reader.GetInt32(1));
! Assertion.AssertEquals(1, _reader.GetInt32(2));
}
_reader.Verify();
}
[Test]
! [ExpectedException(typeof(IndexOutOfRangeException))]
public void GetIntFails()
{
--- 195,205 ----
while (_reader.Read())
{
! Assertion.AssertEquals(0, _reader.GetInt32(0));
! Assertion.AssertEquals(1, _reader.GetInt32(1));
}
_reader.Verify();
}
[Test]
! [ExpectedException(typeof(IndexOutOfRangeException))]
public void GetIntFails()
{
***************
*** 214,219 ****
while (_reader.Read())
{
! Assertion.AssertEquals(0, _reader.GetInt32(0));
! Assertion.AssertEquals(1, _reader.GetInt32(1));
}
_reader.Verify();
--- 214,219 ----
while (_reader.Read())
{
! Assertion.AssertEquals(0, _reader.GetInt32(3));
! Assertion.AssertEquals(1, _reader.GetInt32(4));
}
_reader.Verify();
|