public void BankMapperDatasource_returnsConnectionsString() { string connectionString = "Data Source=testDb_version2.db"; myBankTest.setDataSource(connectionString); FieldInfo fi = typeof(BankMapper).GetField("_connectionString", BindingFlags.Instance | BindingFlags.NonPublic); var actual = fi.GetValue(myBankTest); Assert.That(actual, Is.EqualTo(connectionString)); }
public void setup() { //create database and state here builder = new sql("Data Source=testDb_version2.db"); myBankTest = new BankMapper(); myBankTest.setDataSource("Data Source=testDb_version2.db"); newAcc = new Account(); newCC = new CreditCard(); }