public void GetDeleteTrackCommandTest() { DaoStoredProcedureBuilder target = new DaoStoredProcedureBuilder(); const int TrackId = 0; DbConnection connection = Dbf.CreateConnection(); IDbCommand actual = target.GetDeleteTrackCommand(TrackId, connection); Assert.AreEqual(SP_DELETE_TRACK, actual.CommandText); Assert.AreEqual(CommandType.StoredProcedure, actual.CommandType); Assert.IsNotNull(actual.Connection); Assert.AreEqual(ConnectionState.Closed, actual.Connection.State); Assert.AreEqual(1, actual.Parameters.Count); }