WriteSafely() public method

public WriteSafely ( string data ) : bool
data string
return bool
示例#1
0
    public void CommitSafely_bad_commit()
    {
        var db  = new Database();
        var orm = new Orm(db);

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

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