Commit() публичный Метод

public Commit ( ) : void
Результат void
    public void Out_of_order()
    {
        var db  = new Database();
        var orm = new Orm(db);

        orm.Write("bad commit");
        orm.Commit();
        object[] actual = { db.DbState, db.lastData };
        Assert.Equal(new object[] { Database.State.Closed, string.Empty }, actual);
    }
    public void Commit_bad()
    {
        var db  = new Database();
        var orm = new Orm(db);

        orm.Begin();
        orm.Write("bad commit");
        orm.Commit();
        object[] actual = { db.DbState, db.lastData };
        Assert.Equal(new object[] { Database.State.Closed, "bad commit" }, actual);
    }