/*
 * Copyright 2013 Palantir Technologies, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

/// <reference path='../references.ts' />

describe("<interface-name>", () => {
    var InterfaceNameRule = Lint.Test.getRule("interface-name");

    it("ensures interface names always start with a capital I", () => {
        var fileName = "rules/interfacename.test.ts";
        var createFailure = Lint.Test.createFailuresOnFile(fileName, InterfaceNameRule.FAILURE_STRING);
        var expectedFailure1 = createFailure([5, 11], [5, 32]);
        var actualFailures = Lint.Test.applyRuleOnFile(fileName, InterfaceNameRule);

        Lint.Test.assertContainsFailure(actualFailures, expectedFailure1);
    });
});
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *