WriteSafely() public method

public WriteSafely ( string data ) : bool
data string
return bool
Exemplo n.º 1
0
    public void CommitSafely_bad_commit()
    {
        var db  = new Database();
        var orm = new Orm(db);

        Assert.False(orm.WriteSafely("bad commit"));
    }
Exemplo n.º 2
0
    public void CommitSafely_good()
    {
        var db  = new Database();
        var orm = new Orm(db);

        Assert.True(orm.WriteSafely("good write"));
    }