"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
const ObjectValidator_1 = require("../../Utilities/ObjectValidator");
const CommonTest_1 = require("./CommonTest");
// tslint:disable:max-func-body-length
// tslint:disable:variable-name
describe('Cdm.ResolutionGuidanceFilterIn', () => {
    /**
     * Resolution Guidance Test - FilterIn - Some
     */
    it('TestFilterInSome', (done) => __awaiter(void 0, void 0, void 0, function* () {
        const testName = 'TestFilterInSome';
        {
            const entityName = 'Employee';
            const expectedContext_default = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expected_default = [];
            const expected_normalized = [];
            const expected_referenceOnly = [];
            const expected_structured = [];
            const expected_normalized_structured = [];
            const expected_referenceOnly_normalized = [];
            const expected_referenceOnly_structured = [];
            const expected_referenceOnly_normalized_structured = [];
            yield CommonTest_1.CommonTest.runTestWithValues(testName, entityName, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured);
        }
        {
            const entityName = 'EmployeeNames';
            const expectedContext_default = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expected_default = [];
            const expected_normalized = [];
            const expected_referenceOnly = [];
            const expected_structured = [];
            const expected_normalized_structured = [];
            const expected_referenceOnly_normalized = [];
            const expected_referenceOnly_structured = [];
            const expected_referenceOnly_normalized_structured = [];
            yield CommonTest_1.CommonTest.runTestWithValues(testName, entityName, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured);
        }
        done();
    }));
    /**
     * Resolution Guidance Test - FilterIn - Some With AttributeGroupRef
     */
    it('TestFilterInSomeWithAttributeGroupRef', (done) => __awaiter(void 0, void 0, void 0, function* () {
        const testName = 'TestFilterInSomeWithAttributeGroupRef';
        {
            const entityName = 'Employee';
            const expectedContext_default = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expected_default = [];
            const expected_normalized = [];
            const expected_referenceOnly = [];
            const expected_structured = [];
            const expected_normalized_structured = [];
            const expected_referenceOnly_normalized = [];
            const expected_referenceOnly_structured = [];
            const expected_referenceOnly_normalized_structured = [];
            yield CommonTest_1.CommonTest.runTestWithValues(testName, entityName, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured);
        }
        {
            const entityName = 'EmployeeNames';
            const expectedContext_default = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expected_default = [];
            const expected_normalized = [];
            const expected_referenceOnly = [];
            const expected_structured = [];
            const expected_normalized_structured = [];
            const expected_referenceOnly_normalized = [];
            const expected_referenceOnly_structured = [];
            const expected_referenceOnly_normalized_structured = [];
            yield CommonTest_1.CommonTest.runTestWithValues(testName, entityName, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured);
        }
        done();
    }));
    /**
     * Resolution Guidance Test - FilterIn - All
     */
    it('TestFilterInAll', (done) => __awaiter(void 0, void 0, void 0, function* () {
        const testName = 'TestFilterInAll';
        {
            const entityName = 'Employee';
            const expectedContext_default = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expected_default = [];
            const expected_normalized = [];
            const expected_referenceOnly = [];
            const expected_structured = [];
            const expected_normalized_structured = [];
            const expected_referenceOnly_normalized = [];
            const expected_referenceOnly_structured = [];
            const expected_referenceOnly_normalized_structured = [];
            yield CommonTest_1.CommonTest.runTestWithValues(testName, entityName, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured);
        }
        {
            const entityName = 'EmployeeNames';
            const expectedContext_default = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expected_default = [];
            const expected_normalized = [];
            const expected_referenceOnly = [];
            const expected_structured = [];
            const expected_normalized_structured = [];
            const expected_referenceOnly_normalized = [];
            const expected_referenceOnly_structured = [];
            const expected_referenceOnly_normalized_structured = [];
            yield CommonTest_1.CommonTest.runTestWithValues(testName, entityName, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured);
        }
        done();
    }));
    /**
     * Resolution Guidance Test - FilterIn - All With AttributeGroupRef
     */
    it('TestFilterInAllWithAttributeGroupRef', (done) => __awaiter(void 0, void 0, void 0, function* () {
        const testName = 'TestFilterInAllWithAttributeGroupRef';
        {
            const entityName = 'Employee';
            const expectedContext_default = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expected_default = [];
            const expected_normalized = [];
            const expected_referenceOnly = [];
            const expected_structured = [];
            const expected_normalized_structured = [];
            const expected_referenceOnly_normalized = [];
            const expected_referenceOnly_structured = [];
            const expected_referenceOnly_normalized_structured = [];
            yield CommonTest_1.CommonTest.runTestWithValues(testName, entityName, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured);
        }
        {
            const entityName = 'EmployeeNames';
            const expectedContext_default = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expectedContext_referenceOnly_normalized_structured = new ObjectValidator_1.AttributeContextExpectedValue();
            const expected_default = [];
            const expected_normalized = [];
            const expected_referenceOnly = [];
            const expected_structured = [];
            const expected_normalized_structured = [];
            const expected_referenceOnly_normalized = [];
            const expected_referenceOnly_structured = [];
            const expected_referenceOnly_normalized_structured = [];
            yield CommonTest_1.CommonTest.runTestWithValues(testName, entityName, expectedContext_default, expectedContext_normalized, expectedContext_referenceOnly, expectedContext_structured, expectedContext_normalized_structured, expectedContext_referenceOnly_normalized, expectedContext_referenceOnly_structured, expectedContext_referenceOnly_normalized_structured, expected_default, expected_normalized, expected_referenceOnly, expected_structured, expected_normalized_structured, expected_referenceOnly_normalized, expected_referenceOnly_structured, expected_referenceOnly_normalized_structured);
        }
        done();
    }));
});
//# sourceMappingURL=ResolutionGuidanceFilterIn.test.js.map