/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    mockInjector = require('../../../mock_injector'),
    defineStrict = require('../../../../lib/object/define_strict.js');

exports.setUp = function (done) {
    done();
};

exports.tearDown = function (done) {
    mockInjector.restoreAll();
    done();
};


exports['Define strict.'] = function (test) {
    var O = defineStrict({
        accessor: ['foo']
    });
    var o = new O({foo: 'bar'});
    test.equal(o.foo(), 'bar');
    
    test.throws(function () {
        new O({baz: 'quz'})
    });
    test.done();
};