Mercurial > pub > bltoolkit
view UnitTests/Fluent/MockDataBase/AssertDb.cs @ 9:1e85f66cf767 default tip
update bltoolkit
author | nickolay |
---|---|
date | Thu, 05 Apr 2018 20:53:26 +0300 |
parents | f990fcb411a9 |
children |
line wrap: on
line source
using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace BLToolkit.Fluent.Test.MockDataBase { public class AssertDb { private readonly MockDb _db; public AssertDb(MockDb db) { _db = db; } public void AreAll(string message = null) { if (_db.Commands.Any(c => !c.IsUsing)) { Assert.Fail(message ?? "Fail all queries"); } } } }