comparison UnitTests/Fluent/MockDataBase/AssertDb.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 using System.Linq;
2 using Microsoft.VisualStudio.TestTools.UnitTesting;
3
4 namespace BLToolkit.Fluent.Test.MockDataBase
5 {
6 public class AssertDb
7 {
8 private readonly MockDb _db;
9
10 public AssertDb(MockDb db)
11 {
12 _db = db;
13 }
14
15 public void AreAll(string message = null)
16 {
17 if (_db.Commands.Any(c => !c.IsUsing))
18 {
19 Assert.Fail(message ?? "Fail all queries");
20 }
21 }
22 }
23 }